Skip to content

Commit b93d0a4

Browse files
authored
Merge pull request #361 from superannotateai/friday
Added deprecated message
2 parents b7de96b + 9198e99 commit b93d0a4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,9 +1092,11 @@ def share_project(
10921092
:param user_role: user role to apply, one of Admin , Annotator , QA , Customer , Viewer
10931093
:type user_role: str
10941094
"""
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)
10951098
warnings.warn(
1096-
"The share_project function is deprecated and will be removed with the coming release, "
1097-
"please use add_contributors_to_project instead.",
1099+
warning_msg,
10981100
DeprecationWarning
10991101
)
11001102
if isinstance(user, dict):

0 commit comments

Comments
 (0)