Skip to content

Commit 256de7a

Browse files
Perform YAPF
1 parent 35a2d77 commit 256de7a

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

docs/source/conf.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import sys
1515
sys.path.insert(0, os.path.abspath('../..'))
1616

17-
1817
# -- Project information -----------------------------------------------------
1918

2019
project = 'Labelbox Python API reference'
@@ -29,9 +28,7 @@
2928
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3029
# ones.
3130
extensions = [
32-
'sphinx.ext.autodoc',
33-
'sphinx.ext.viewcode',
34-
'sphinxcontrib.napoleon'
31+
'sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinxcontrib.napoleon'
3532
]
3633

3734
# Add any paths that contain templates here, relative to this directory.
@@ -42,7 +39,6 @@
4239
# This pattern also affects html_static_path and html_extra_path.
4340
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
4441

45-
4642
# -- Options for HTML output -------------------------------------------------
4743

4844
# The theme to use for HTML and HTML Help pages. See the documentation for

labelbox/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ def check_errors(keywords, *path):
186186
if response_msg.startswith("You have exceeded"):
187187
raise labelbox.exceptions.ApiLimitError(response_msg)
188188

189-
resource_not_found_error = check_errors(
190-
["RESOURCE_NOT_FOUND"], "extensions", "exception", "code")
189+
resource_not_found_error = check_errors(["RESOURCE_NOT_FOUND"],
190+
"extensions", "exception",
191+
"code")
191192
if resource_not_found_error is not None:
192193
# Return None and let the caller methods raise an exception
193194
# as they already know which resource type and ID was requested

labelbox/orm/db_object.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ def __str__(self):
8383

8484
def __eq__(self, other):
8585
return (isinstance(other, DbObject) and
86-
self.type_name() == other.type_name() and
87-
self.uid == other.uid)
86+
self.type_name() == other.type_name() and self.uid == other.uid)
8887

8988
def __hash__(self):
9089
return 7541 * hash(self.type_name()) + hash(self.uid)

tests/integration/test_data_rows.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def test_data_row_bulk_creation(dataset, rand_gen):
4949

5050
data_rows[0].delete()
5151

52+
5253
@pytest.mark.slow
5354
def test_data_row_large_bulk_creation(dataset, rand_gen):
5455
# Do a longer task and expect it not to be complete immediately

0 commit comments

Comments
 (0)