Skip to content

Commit 22ccff8

Browse files
committed
Added deprecated message
1 parent 3e01e34 commit 22ccff8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 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,11 @@ 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+
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.",
1098+
DeprecationWarning
1099+
)
10941100
if isinstance(user, dict):
10951101
user_id = user["id"]
10961102
else:

0 commit comments

Comments
 (0)