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

Incompatible with Python>=3.10 (AttributeError: module 'collections' has no attribute 'Mapping') #39

Open
BlockDweller opened this issue Jan 30, 2023 · 1 comment

Comments

@BlockDweller
Copy link

Issue: error thrown on module import

>>> import frozendict
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/crypt0xyc/projects/starknet-arb/.venv/lib/python3.10/site-packages/frozendict/__init__.py", line 16, in <module>
    class frozendict(collections.Mapping):
AttributeError: module 'collections' has no attribute 'Mapping'

Proposed solution for Python 3.10 compatibility
replace collections.Mapping with collections.abc.Mapping

@Marco-Sulla
Copy link

Hello @crypt0xyc . Project has moved here: https://github.com/Marco-Sulla/python-frozendict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants