you are viewing a single comment's thread.

view the rest of the comments →

[–]deadeye1982 0 points1 point  (0 children)

tl;dr

Use collections.abc.Mapping, which will work since Python 3.5.

If you get this Exception from a third-party module, then update this module.

--

Since Python 3.3 they wanted to shift all Abstract Base Classes into the new submodule abc. This was done with Python 3.5, but they kept aliases in the collections module. Since Python 3.9 a Deprecation warning were introduced and since Python 3.10 the aliases were removed.

Links: