Skip to content

Commit 28f9d28

Browse files
Formatting
1 parent f49f4e4 commit 28f9d28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

labelbox/schema/annotation_import.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def statuses(self) -> List[Dict[str, Any]]:
7878
self.wait_until_done()
7979
return self._fetch_remote_ndjson(self.status_file_url)
8080

81-
def wait_until_done(self, sleep_time_seconds: int = 10, show_progress: bool = True) -> None:
81+
def wait_until_done(self, sleep_time_seconds: int = 10,
82+
show_progress: bool = True) -> None:
8283
"""Blocks import job until certain conditions are met.
8384
Blocks until the AnnotationImport.state changes either to
8485
`AnnotationImportState.FINISHED` or `AnnotationImportState.FAILED`,
@@ -97,6 +98,7 @@ def wait_until_done(self, sleep_time_seconds: int = 10, show_progress: bool = Tr
9798

9899
if pbar:
99100
pbar.update(100)
101+
pbar.close()
100102

101103
@backoff.on_exception(
102104
backoff.expo,

0 commit comments

Comments
 (0)