Skip to content

Commit

Permalink
Fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Jul 31, 2023
1 parent 45ae4ee commit 6723770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloudpathlib/cloudpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def _patched_close_empty_cache(*args, **kwargs):
return buffer

def replace(self, target: Self) -> Self:
if type(self) != type(target):
if type(self) is type(target):
raise TypeError(
f"The target based to rename must be an instantiated class of type: {type(self)}"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_interface(cloud_class, local_class):
cloud_attr = getattr(cloud_class, attr_name)
local_attr = getattr(local_class, attr_name)

assert type(cloud_attr) == type(local_attr)
assert type(cloud_attr) is type(local_attr)
if callable(cloud_attr):
assert signature(cloud_attr).parameters == signature(local_attr).parameters

Expand Down

0 comments on commit 6723770

Please sign in to comment.