Skip to content

Commit

Permalink
Disable ruff check on type comparison that looks intentional
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom committed Jan 16, 2024
1 parent 03d0629 commit 27ea305
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synchronicity/synchronizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ def _translate_scalar_out(self, obj, interface):
return obj

def _recurse_map(self, mapper, obj):
if type(obj) == list:
if type(obj) == list: # noqa: E721
return list(self._recurse_map(mapper, item) for item in obj)
elif type(obj) == tuple:
elif type(obj) == tuple: # noqa: E721
return tuple(self._recurse_map(mapper, item) for item in obj)
elif type(obj) == dict:
elif type(obj) == dict: # noqa: E721
return dict((key, self._recurse_map(mapper, item)) for key, item in obj.items())
else:
return mapper(obj)
Expand Down

0 comments on commit 27ea305

Please sign in to comment.