We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
collections.abc.Iterable
I've implemented something like the following code, but mypy checks returns the error in the title
from collections import abc class Foo(abc.Iterable, abc.Container): pass
The complete error output is:
example.py:4: error: Name 'abc.Iterable' is not defined
It seems mypy checks aren't considering the collections.abc module. Since collections.Container is found, but not collections.abc.Iterable.
collections.abc
collections.Container
Is this really an issue or am I missing something?
The text was updated successfully, but these errors were encountered:
Thanks for reporting. The problem is that the stub for collections.abc is incomplete, it is missing some imports.
Do you feel like helping out by submitting a pull request?
Sorry, something went wrong.
Sure, I will submit a PR as soon as I can.
d17f723
No branches or pull requests
I've implemented something like the following code, but mypy checks returns the error in the title
The complete error output is:
It seems mypy checks aren't considering the
collections.abc
module. Sincecollections.Container
is found, but notcollections.abc.Iterable
.Is this really an issue or am I missing something?
The text was updated successfully, but these errors were encountered: