This PR fixed the ABC import issue for python versions >= 3.10. Specifically, I've updated the code to import Iterable from collections.abc instead of collections based on the version information. Since python 3.3, ABCs like Iterable were moved to collections.abc, and they were finally dropped in 3.10.
Additionally, I noticed that your other code was using typing. However, for maximum compatibility, I've still used collections.abc for this specific issue.
This PR fixed the ABC import issue for python versions >= 3.10. Specifically, I've updated the code to import
Iterable
fromcollections.abc
instead ofcollections
based on the version information. Since python 3.3, ABCs likeIterable
were moved tocollections.abc
, and they were finally dropped in 3.10.Additionally, I noticed that your other code was using
typing
. However, for maximum compatibility, I've still usedcollections.abc
for this specific issue.