snaql
snaql copied to clipboard
Python 3.10 breaking change for collections
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
https://docs.python.org/3/library/collections.abc.html
Maybe you can make if backward compatible by checking the python version
if sys.version_info.major >= 3 and sys.version_info.minor >= 10
use abc
A "hacky" workaround:
import collections
collections.Callable = collections.abc.Callable
collections.Iterable = collections.abc.Iterable
before using snaql.