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

DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working #444

Closed
dickkniep opened this issue Feb 26, 2021 · 2 comments

Comments

@dickkniep
Copy link

In 0.12.1 in schema_builder.py it is using a deprecated method to import collections.
def _compile(self, schema): if schema is Extra: return lambda _, v: v if schema is Self: return lambda p, v: self._compiled(p, v) elif hasattr(schema, "__voluptuous_compile__"): return schema.__voluptuous_compile__(self) if isinstance(schema, Object): return self._compile_object(schema) if isinstance(schema, collections.Mapping): return self._compile_dict(schema) elif isinstance(schema, list): return self._compile_list(schema) elif isinstance(schema, tuple): return self._compile_tuple(schema) type_ = type(schema)

@alecthomas
Copy link
Owner

PRs welcome.

@spacegaier
Copy link
Collaborator

@dickkniep Are you sure that you are using 0.12.1? I am asking because the warning you reported should have been fixed already by this PR from 0.11.7: #371

Did you do anything special to get this warning?

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

3 participants