Skip to content

Commit bcfd9d6

Browse files
Formatting
1 parent 82f87da commit bcfd9d6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

labelbox/schema/annotation_import.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def statuses(self) -> List[Dict[str, Any]]:
7979
return self._fetch_remote_ndjson(self.status_file_url)
8080

8181
def wait_until_done(self,
82-
sleep_time_seconds: int = 10,
82+
sleep_time_seconds: int = 10,
8383
show_progress: bool = True) -> None:
8484
"""Blocks import job until certain conditions are met.
8585
Blocks until the AnnotationImport.state changes either to
@@ -97,7 +97,7 @@ def wait_until_done(self,
9797
if self.progress and pbar:
9898
pbar.update(self.progress)
9999

100-
if pbar:
100+
if pbar:
101101
pbar.update(100)
102102
pbar.close()
103103

@@ -367,8 +367,8 @@ def create_from_objects(
367367
if not data_str:
368368
raise ValueError('annotations cannot be empty')
369369
data = data_str.encode('utf-8')
370-
return cls._create_mal_import_from_bytes(client, project_id, name, data,
371-
len(data))
370+
return cls._create_mal_import_from_bytes(client, project_id, name,
371+
data, len(data))
372372

373373
@classmethod
374374
def create_from_url(cls, client: "labelbox.Client", project_id: str,
@@ -577,7 +577,8 @@ def from_name(cls,
577577
}
578578
response = client.execute(query_str, params)
579579
if response is None:
580-
raise labelbox.exceptions.ResourceNotFoundError(LabelImport, params)
580+
raise labelbox.exceptions.ResourceNotFoundError(
581+
LabelImport, params)
581582
response = response["labelImport"]
582583
if as_json:
583584
return response
@@ -616,4 +617,4 @@ def _create_label_import_from_bytes(cls, client: "labelbox.Client",
616617
query_str = cls._get_file_mutation()
617618
res = cls._create_from_bytes(client, variables, query_str, file_name,
618619
bytes_data)
619-
return cls(client, res["createLabelImport"])
620+
return cls(client, res["createLabelImport"])

0 commit comments

Comments
 (0)