python-frozendict icon indicating copy to clipboard operation
python-frozendict copied to clipboard

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

Open BlockDweller opened this issue 2 years ago • 1 comments

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

BlockDweller avatar Jan 30 '23 12:01 BlockDweller

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

Marco-Sulla avatar Jan 30 '23 21:01 Marco-Sulla