Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.10 breaking change for collections #19

Open
rsibanez89 opened this issue Jul 27, 2022 · 1 comment
Open

Python 3.10 breaking change for collections #19

rsibanez89 opened this issue Jul 27, 2022 · 1 comment

Comments

@rsibanez89
Copy link

rsibanez89 commented Jul 27, 2022

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 rsibanez89 changed the title Python 3.10 breaking change Python 3.10 breaking change for collections Jul 27, 2022
@tfrokt
Copy link

tfrokt commented Jun 26, 2023

A "hacky" workaround:

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

before using snaql.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants