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.
Is this really an issue or am I missing something?
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.abcmodule. Sincecollections.Containeris found, but notcollections.abc.Iterable.Is this really an issue or am I missing something?