Skip to content

Commit e1012f5

Browse files
author
Matt Sokoloff
committed
small changes
1 parent 64c7687 commit e1012f5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

labelbox/schema/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def _is_url_valid(url: Union[str, Path]) -> bool:
467467
file=path,
468468
validate_file=validate,
469469
)
470-
elif isinstance(annotations, List):
470+
elif isinstance(annotations, Iterable):
471471
return BulkImportRequest.create_from_objects(
472472
client=self.client,
473473
project_id=self.uid,

tests/integration/bulk_import/test_bulk_import_request.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_create_from_objects(configured_project, predictions):
5050
assert bulk_import_request.error_file_url is None
5151
assert bulk_import_request.status_file_url is None
5252
assert bulk_import_request.state == BulkImportRequestState.RUNNING
53-
__assert_file_content(bulk_import_request.input_file_url, predictions)
53+
assert_file_content(bulk_import_request.input_file_url, predictions)
5454

5555

5656
def test_create_from_local_file(tmp_path, predictions, configured_project):
@@ -68,7 +68,7 @@ def test_create_from_local_file(tmp_path, predictions, configured_project):
6868
assert bulk_import_request.error_file_url is None
6969
assert bulk_import_request.status_file_url is None
7070
assert bulk_import_request.state == BulkImportRequestState.RUNNING
71-
__assert_file_content(bulk_import_request.input_file_url, predictions)
71+
assert_file_content(bulk_import_request.input_file_url, predictions)
7272

7373

7474
def test_get(client, configured_project):
@@ -134,6 +134,6 @@ def test_wait_till_done(configured_project):
134134
bulk_import_request.state == BulkImportRequestState.FAILED)
135135

136136

137-
def __assert_file_content(url: str, predictions):
137+
def assert_file_content(url: str, predictions):
138138
response = requests.get(url)
139139
assert response.text == ndjson.dumps(predictions)

0 commit comments

Comments
 (0)