Skip to content

Commit

Permalink
chore: fix lint and flake8 sessions (#1103)
Browse files Browse the repository at this point in the history
  • Loading branch information
cojenco committed Aug 9, 2023
1 parent 663edc5 commit d9b2065
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion google/cloud/storage/acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ class ACL(object):

# Subclasses must override to provide these attributes (typically,
# as properties).
client = None
reload_path = None
save_path = None
user_project = None
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/storage/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def __init__(
kw_args["api_endpoint"] = storage_host if _is_emulator_set else None

if client_options:
if type(client_options) == dict:
if isinstance(client_options, dict):
client_options = google.api_core.client_options.from_dict(
client_options
)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_transfer_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def test_upload_many_suppresses_412_with_skip_if_exists():
worker_type=transfer_manager.THREAD,
)
for result in results:
assert type(result) == exceptions.PreconditionFailed
assert isinstance(result, exceptions.PreconditionFailed)


def test_upload_many_with_processes():
Expand Down

0 comments on commit d9b2065

Please sign in to comment.