|
30 | 30 | from lib.app.interface.types import AnnotationType |
31 | 31 | from lib.app.interface.types import ImageQualityChoices |
32 | 32 | from lib.app.interface.types import NotEmptyStr |
33 | | -from lib.app.interface.types import Status |
34 | 33 | from lib.app.interface.types import validate_arguments |
35 | 34 | from lib.app.mixp.decorators import Trackable |
36 | 35 | from lib.app.serializers import BaseSerializers |
@@ -280,7 +279,7 @@ def clone_project( |
280 | 279 | def search_images( |
281 | 280 | project: Union[NotEmptyStr, dict], |
282 | 281 | image_name_prefix: Optional[NotEmptyStr] = None, |
283 | | - annotation_status: Optional[Status] = None, |
| 282 | + annotation_status: Optional[AnnotationStatuses] = None, |
284 | 283 | return_metadata: Optional[StrictBool] = False, |
285 | 284 | ): |
286 | 285 | """Search images by name_prefix (case-insensitive) and annotation status |
@@ -603,7 +602,7 @@ def upload_images_from_public_urls_to_project( |
603 | 602 | project: Union[NotEmptyStr, dict], |
604 | 603 | img_urls: List[NotEmptyStr], |
605 | 604 | img_names: Optional[List[NotEmptyStr]] = None, |
606 | | - annotation_status: Optional[Status] = "NotStarted", |
| 605 | + annotation_status: Optional[AnnotationStatuses] = "NotStarted", |
607 | 606 | image_quality_in_editor: Optional[NotEmptyStr] = None, |
608 | 607 | ): |
609 | 608 | """Uploads all images given in the list of URL strings in img_urls to the project. |
@@ -1641,7 +1640,7 @@ def upload_videos_from_folder_to_project( |
1641 | 1640 | target_fps: Optional[int] = None, |
1642 | 1641 | start_time: Optional[float] = 0.0, |
1643 | 1642 | end_time: Optional[float] = None, |
1644 | | - annotation_status: Optional[Status] = "NotStarted", |
| 1643 | + annotation_status: Optional[AnnotationStatuses] = "NotStarted", |
1645 | 1644 | image_quality_in_editor: Optional[str] = None, |
1646 | 1645 | ): |
1647 | 1646 | """Uploads image frames from all videos with given extensions from folder_path to the project. |
@@ -1778,7 +1777,7 @@ def upload_video_to_project( |
1778 | 1777 | target_fps: Optional[int] = None, |
1779 | 1778 | start_time: Optional[float] = 0.0, |
1780 | 1779 | end_time: Optional[float] = None, |
1781 | | - annotation_status: Optional[Status] = "NotStarted", |
| 1780 | + annotation_status: Optional[AnnotationStatuses] = "NotStarted", |
1782 | 1781 | image_quality_in_editor: Optional[NotEmptyStr] = None, |
1783 | 1782 | ): |
1784 | 1783 | """Uploads image frames from video to platform. Uploaded images will have |
@@ -2235,7 +2234,7 @@ def download_image( |
2235 | 2234 | def attach_image_urls_to_project( |
2236 | 2235 | project: Union[NotEmptyStr, dict], |
2237 | 2236 | attachments: Union[str, Path], |
2238 | | - annotation_status: Optional[Status] = "NotStarted", |
| 2237 | + annotation_status: Optional[AnnotationStatuses] = "NotStarted", |
2239 | 2238 | ): |
2240 | 2239 | """Link images on external storage to SuperAnnotate. |
2241 | 2240 |
|
@@ -2298,7 +2297,7 @@ def attach_image_urls_to_project( |
2298 | 2297 | def attach_video_urls_to_project( |
2299 | 2298 | project: Union[NotEmptyStr, dict], |
2300 | 2299 | attachments: Union[str, Path], |
2301 | | - annotation_status: Optional[Status] = "NotStarted", |
| 2300 | + annotation_status: Optional[AnnotationStatuses] = "NotStarted", |
2302 | 2301 | ): |
2303 | 2302 | """Link videos on external storage to SuperAnnotate. |
2304 | 2303 |
|
@@ -3314,7 +3313,7 @@ def upload_image_to_project( |
3314 | 3313 | project: NotEmptyStr, |
3315 | 3314 | img, |
3316 | 3315 | image_name: Optional[NotEmptyStr] = None, |
3317 | | - annotation_status: Optional[Status] = "NotStarted", |
| 3316 | + annotation_status: Optional[AnnotationStatuses] = "NotStarted", |
3318 | 3317 | from_s3_bucket=None, |
3319 | 3318 | image_quality_in_editor: Optional[NotEmptyStr] = None, |
3320 | 3319 | ): |
@@ -3389,7 +3388,7 @@ def search_models( |
3389 | 3388 | def upload_images_to_project( |
3390 | 3389 | project: NotEmptyStr, |
3391 | 3390 | img_paths: List[NotEmptyStr], |
3392 | | - annotation_status: Optional[Status] = "NotStarted", |
| 3391 | + annotation_status: Optional[AnnotationStatuses] = "NotStarted", |
3393 | 3392 | from_s3_bucket=None, |
3394 | 3393 | image_quality_in_editor: Optional[ImageQualityChoices] = None, |
3395 | 3394 | ): |
@@ -3523,7 +3522,7 @@ def delete_annotations( |
3523 | 3522 | def attach_document_urls_to_project( |
3524 | 3523 | project: Union[NotEmptyStr, dict], |
3525 | 3524 | attachments: Union[Path, NotEmptyStr], |
3526 | | - annotation_status: Optional[Status] = "NotStarted", |
| 3525 | + annotation_status: Optional[AnnotationStatuses] = "NotStarted", |
3527 | 3526 | ): |
3528 | 3527 | """Link documents on external storage to SuperAnnotate. |
3529 | 3528 |
|
|
0 commit comments