snaql icon indicating copy to clipboard operation
snaql copied to clipboard

Python 3.10 breaking change for collections

Open rsibanez89 opened this issue 2 years ago • 1 comments

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

rsibanez89 avatar Jul 27 '22 00:07 rsibanez89

A "hacky" workaround:

import collections
collections.Callable = collections.abc.Callable
collections.Iterable = collections.abc.Iterable

before using snaql.

tfrokt avatar Jun 26 '23 01:06 tfrokt