@@ -693,10 +693,9 @@ def assign_items(
693693
694694 if not response .errors :
695695 logger .info (f"Assign items to user { user } " )
696- elif response . status != "Skip" :
696+ else :
697697 raise AppException (response .errors )
698698
699- @validate_arguments
700699 def unassign_items (
701700 self , project : Union [NotEmptyStr , dict ], item_names : List [NotEmptyStr ]
702701 ):
@@ -731,6 +730,14 @@ def assign_images(
731730 :param user: user email
732731 :type user: str
733732 """
733+
734+ warning_msg = (
735+ "We're deprecating the assign_images function. Please use assign_items instead."
736+ "Learn more. \n "
737+ "https://superannotate.readthedocs.io/en/stable/superannotate.sdk.html#superannotate.assign_items"
738+ )
739+ logger .warning (warning_msg )
740+ warnings .warn (warning_msg , DeprecationWarning )
734741 project_name , folder_name = extract_project_folder (project )
735742 project = self .controller .get_project_metadata (project_name ).data
736743
@@ -778,6 +785,14 @@ def unassign_images(
778785 :param image_names: list of images to unassign
779786 :type image_names: list of str
780787 """
788+
789+ warning_msg = (
790+ "We're deprecating the unassign_images function. Please use unassign_items instead."
791+ "Learn more. \n "
792+ "https://superannotate.readthedocs.io/en/stable/superannotate.sdk.html#superannotate.unassign_items"
793+ )
794+ logger .warning (warning_msg )
795+ warnings .warn (warning_msg , DeprecationWarning )
781796 project_name , folder_name = extract_project_folder (project )
782797
783798 response = self .controller .un_assign_items (
0 commit comments