Skip to content

Commit 8f4ee94

Browse files
committed
Added deprecated message
1 parent 3e01e34 commit 8f4ee94

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/superannotate/lib/app/interface/sdk_interface.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import logging
44
import os
55
import tempfile
6+
import warnings
67
from pathlib import Path
78
from typing import Iterable
89
from typing import List
@@ -1091,6 +1092,13 @@ def share_project(
10911092
:param user_role: user role to apply, one of Admin , Annotator , QA , Customer , Viewer
10921093
:type user_role: str
10931094
"""
1095+
warning_msg = "The share_project function is deprecated and will be removed with the coming release, " \
1096+
"please use add_contributors_to_project instead."
1097+
logger.warning(warning_msg)
1098+
warnings.warn(
1099+
warning_msg,
1100+
DeprecationWarning
1101+
)
10941102
if isinstance(user, dict):
10951103
user_id = user["id"]
10961104
else:

0 commit comments

Comments
 (0)