Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make compatible with Python 3.12 #120

Merged
merged 6 commits into from
Jan 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Disable ruff check on type comparison that looks intentional
mwaskom committed Jan 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 27ea305be816fda1d4e8329400f9b9ade6c0f62c
6 changes: 3 additions & 3 deletions synchronicity/synchronizer.py
Original file line number Diff line number Diff line change
@@ -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)