Skip to content

Commit 1f69eae

Browse files
committed
Update sdk interface optinal arguments annotations
1 parent c55f697 commit 1f69eae

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@ def upload_videos_from_folder_to_project(
27942794
target_fps: Optional[int] = None,
27952795
start_time: Optional[float] = 0.0,
27962796
end_time: Optional[float] = None,
2797-
annotation_status: str = None,
2797+
annotation_status: Optional[str] = None,
27982798
image_quality_in_editor: Optional[IMAGE_QUALITY] = None,
27992799
):
28002800
"""Uploads image frames from all videos with given extensions from folder_path to the project.
@@ -3361,7 +3361,7 @@ def upload_annotations(
33613361
self,
33623362
project: Union[NotEmptyStr, int, Tuple[int, int], Tuple[str, str]],
33633363
annotations: List[dict],
3364-
keep_status: bool = None,
3364+
keep_status: Optional[bool] = None,
33653365
*,
33663366
data_spec: Literal["default", "multimodal"] = "default",
33673367
):
@@ -4221,7 +4221,7 @@ def search_items(
42214221
self,
42224222
project: Union[NotEmptyStr, int, Tuple[int, int], Tuple[str, str]],
42234223
name_contains: NotEmptyStr = None,
4224-
annotation_status: str = None,
4224+
annotation_status: Optional[str] = None,
42254225
annotator_email: Optional[NotEmptyStr] = None,
42264226
qa_email: Optional[NotEmptyStr] = None,
42274227
recursive: bool = False,
@@ -4660,7 +4660,7 @@ def attach_items(
46604660
attachments: Union[
46614661
NotEmptyStr, Path, Annotated[List[Attachment], Field(min_length=1)]
46624662
],
4663-
annotation_status: str = None,
4663+
annotation_status: Optional[str] = None,
46644664
):
46654665
"""
46664666
Link items from external storage to SuperAnnotate using URLs.
@@ -5028,10 +5028,10 @@ def set_annotation_statuses(
50285028
def download_annotations(
50295029
self,
50305030
project: Union[NotEmptyStr, int, Tuple[int, int], Tuple[str, str]],
5031-
path: Union[str, Path] = None,
5031+
path: Optional[Union[str, Path]] = None,
50325032
items: Optional[List[NotEmptyStr]] = None,
50335033
recursive: bool = False,
5034-
callback: Callable = None,
5034+
callback: Optional[Callable] = None,
50355035
data_spec: Literal["default", "multimodal"] = "default",
50365036
):
50375037
"""Downloads annotation JSON files of the selected items to the local directory.

0 commit comments

Comments
 (0)