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
Consider the following type stubs:
# foo/__init__.pyi class Foo: ...
# foo/bar.pyi from . import Foo class Bar(Foo): ...
When parsing foo/bar.pyi, pytype fails with:
ParseError: Unexpected class base: Module(name='Foo', module_name='foo.Foo')
pytype erroneously assumes that Foo is a submodule. A workaround is to replace from . import Foo with from foo import Foo.
Foo
from . import Foo
from foo import Foo
Context: python/typeshed#5192
The text was updated successfully, but these errors were encountered:
This seems to be fixed.
Sorry, something went wrong.
No branches or pull requests
Consider the following type stubs:
When parsing foo/bar.pyi, pytype fails with:
pytype erroneously assumes that
Foo
is a submodule. A workaround is to replacefrom . import Foo
withfrom foo import Foo
.Context: python/typeshed#5192
The text was updated successfully, but these errors were encountered: