Closed whudson closed 1 year ago
A thought on this: since python 3.3, the canonical way to get at the classes Iterable
and Sequence
has been via collections.abc
. From the pypi page, I think that the first Python3 supported version for gmaps
is 3.5. So would it make sense to make the code more idomatic, rather than aliasing collections.abc
as collections
to reduce future confusion?
If earlier versions of Python 3 are intended to be supported, then should there be a test to warn about unnecessary code for later versions?
This PR addresses https://github.com/pbugnion/gmaps/issues/352.
Try to access the abstract base classes on the collections object, and if we cannot they need to be accessed from collections.abc.