Skip to content

import mapping from collections.abc

Created by: ldartez

Since 3.10, Mapping must be imported via collections.abc rather than from collections directly.

Running with 3.10 produces the error below (provided by SURF student Caden Swain):

File ~\anaconda3\lib\site-packages\wield\iirrational\v2\arguments\standardargs.py:54 in normalize_roots
    elif isinstance(val, collections.Mapping):

AttributeError: module 'collections' has no attribute 'Mapping'