|
82 | 82 | "GenAI", |
83 | 83 | ] |
84 | 84 |
|
85 | | -ANNOTATION_STATUS = Literal[ |
86 | | - "NotStarted", "InProgress", "QualityCheck", "Returned", "Completed", "Skipped" |
87 | | -] |
88 | 85 |
|
89 | 86 | APPROVAL_STATUS = Literal["Approved", "Disapproved", None] |
90 | 87 |
|
@@ -1193,7 +1190,7 @@ def prepare_export( |
1193 | 1190 | self, |
1194 | 1191 | project: Union[NotEmptyStr, dict], |
1195 | 1192 | folder_names: Optional[List[NotEmptyStr]] = None, |
1196 | | - annotation_statuses: Optional[List[ANNOTATION_STATUS]] = None, |
| 1193 | + annotation_statuses: Optional[List[str]] = None, |
1197 | 1194 | include_fuse: Optional[bool] = False, |
1198 | 1195 | only_pinned=False, |
1199 | 1196 | **kwargs, |
@@ -1245,15 +1242,6 @@ def prepare_export( |
1245 | 1242 | folders = [folder_name] if folder_name else [] |
1246 | 1243 | else: |
1247 | 1244 | folders = folder_names |
1248 | | - if not annotation_statuses: |
1249 | | - annotation_statuses = [ |
1250 | | - constants.AnnotationStatus.NOT_STARTED.name, |
1251 | | - constants.AnnotationStatus.IN_PROGRESS.name, |
1252 | | - constants.AnnotationStatus.QUALITY_CHECK.name, |
1253 | | - constants.AnnotationStatus.RETURNED.name, |
1254 | | - constants.AnnotationStatus.COMPLETED.name, |
1255 | | - constants.AnnotationStatus.SKIPPED.name, |
1256 | | - ] |
1257 | 1245 | integration_name = kwargs.get("integration_name") |
1258 | 1246 | integration_id = None |
1259 | 1247 | if integration_name: |
@@ -2125,7 +2113,7 @@ def upload_images_to_project( |
2125 | 2113 | self, |
2126 | 2114 | project: NotEmptyStr, |
2127 | 2115 | img_paths: List[NotEmptyStr], |
2128 | | - annotation_status: Optional[ANNOTATION_STATUS] = "NotStarted", |
| 2116 | + annotation_status: str = "NotStarted", |
2129 | 2117 | from_s3_bucket=None, |
2130 | 2118 | image_quality_in_editor: Optional[IMAGE_QUALITY] = None, |
2131 | 2119 | ): |
@@ -2556,7 +2544,7 @@ def search_items( |
2556 | 2544 | self, |
2557 | 2545 | project: NotEmptyStr, |
2558 | 2546 | name_contains: NotEmptyStr = None, |
2559 | | - annotation_status: Optional[ANNOTATION_STATUS] = None, |
| 2547 | + annotation_status: str = None, |
2560 | 2548 | annotator_email: Optional[NotEmptyStr] = None, |
2561 | 2549 | qa_email: Optional[NotEmptyStr] = None, |
2562 | 2550 | recursive: bool = False, |
@@ -3021,7 +3009,7 @@ def move_items( |
3021 | 3009 | def set_annotation_statuses( |
3022 | 3010 | self, |
3023 | 3011 | project: Union[NotEmptyStr, dict], |
3024 | | - annotation_status: ANNOTATION_STATUS, |
| 3012 | + annotation_status: NotEmptyStr, |
3025 | 3013 | items: Optional[List[NotEmptyStr]] = None, |
3026 | 3014 | ): |
3027 | 3015 | """Sets annotation statuses of items |
|
0 commit comments