@@ -2893,7 +2893,7 @@ def set_project_steps(
28932893 Request Example for General Annotation Project:
28942894 ::
28952895
2896- sa .set_project_steps(
2896+ sa_client .set_project_steps(
28972897 project="Medical Annotations",
28982898 steps=[
28992899 {
@@ -2915,7 +2915,7 @@ def set_project_steps(
29152915 Request Example for Keypoint Annotation Project:
29162916 ::
29172917
2918- sa .set_project_steps(
2918+ sa_client .set_project_steps(
29192919 project="Pose Estimation Project",
29202920 steps=[
29212921 {
@@ -5340,6 +5340,7 @@ def list_workflows(self):
53405340 def remove_users (self , users : Union [List [int ], List [str ]]):
53415341 """
53425342 Allows removing users from the team.
5343+
53435344 :param users: A list of emails or IDs of the users.
53445345 :type users: Union[List[int], List[str]]
53455346
@@ -5354,8 +5355,8 @@ def remove_users(self, users: Union[List[int], List[str]]):
53545355 success = 0
53555356 if users :
53565357 if isinstance (users [0 ], int ):
5357- users = self .controller .work_management .list_users (id__in = users )
5358- user_emails = [user .email for user in users ]
5358+ users_data = self .controller .work_management .list_users (id__in = users )
5359+ user_emails = [user .email for user in users_data ]
53595360 else :
53605361 user_emails = users
53615362 if user_emails :
@@ -5389,10 +5390,10 @@ def remove_users_from_project(
53895390 success = 0
53905391 if users :
53915392 if isinstance (users [0 ], int ):
5392- users = self .controller .work_management .list_users (
5393+ users_data = self .controller .work_management .list_users (
53935394 project = project , id__in = users
53945395 )
5395- user_emails = [user .email for user in users ]
5396+ user_emails = [user .email for user in users_data ]
53965397 else :
53975398 user_emails = users
53985399 if user_emails :
0 commit comments