brennv / namedtupled

Lightweight namedtuple wrapper for attribute-style data access (a la JavaScript objects).
MIT License
49 stars 11 forks source link

Updating Collections Mapping py > 3.10 #26

Closed Maxiviper117 closed 2 years ago

Maxiviper117 commented 2 years ago

In python 3.10:

"from collections import Mapping" was changed to "from collections.abc import Mapping".

This change broke this package when being used in python version > 3.10

Added version checking to ensure that the correct import scheme is used for 3.10 and greater.