Skip to content

Commit d9b2065

Browse files
authored
chore: fix lint and flake8 sessions (#1103)
1 parent 663edc5 commit d9b2065

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

google/cloud/storage/acl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ class ACL(object):
137137

138138
# Subclasses must override to provide these attributes (typically,
139139
# as properties).
140-
client = None
141140
reload_path = None
142141
save_path = None
143142
user_project = None

google/cloud/storage/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def __init__(
147147
kw_args["api_endpoint"] = storage_host if _is_emulator_set else None
148148

149149
if client_options:
150-
if type(client_options) == dict:
150+
if isinstance(client_options, dict):
151151
client_options = google.api_core.client_options.from_dict(
152152
client_options
153153
)

tests/unit/test_transfer_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def test_upload_many_suppresses_412_with_skip_if_exists():
192192
worker_type=transfer_manager.THREAD,
193193
)
194194
for result in results:
195-
assert type(result) == exceptions.PreconditionFailed
195+
assert isinstance(result, exceptions.PreconditionFailed)
196196

197197

198198
def test_upload_many_with_processes():

0 commit comments

Comments
 (0)