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
Let's say there are three modules:
test/__init__.py:
test/__init__.py
from test.a import A from test.b import B
test/a.py:
test/a.py
class A: pass
test/b.py:
test/b.py
from test import A class B: pass
Using mypy 0.4.3 mypy -p test will report test/b.py:1: error: Module has no attribute 'A'
mypy -p test
test/b.py:1: error: Module has no attribute 'A'
The text was updated successfully, but these errors were encountered:
This issue is poorly named, can someone suggest a better title?
Sorry, something went wrong.
Looks like you found another problem with import cycles. B depends on init and vice versa. I think we have a few issues for such things already.
On Sunday, July 24, 2016, Tom Manderson <[email protected] javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:
This issue is poorly named, can someone suggest a better title? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub #1935 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ACwrMtRt5rA2o-i6mIsEO6YJMu-zOhygks5qZET7gaJpZM4JTyrm .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub #1935 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/ACwrMtRt5rA2o-i6mIsEO6YJMu-zOhygks5qZET7gaJpZM4JTyrm .
--Guido (mobile)
Closing as a duplicate of #481.
No branches or pull requests
Let's say there are three modules:
test/__init__.py
:test/a.py
:test/b.py
:Using mypy 0.4.3
mypy -p test
will reporttest/b.py:1: error: Module has no attribute 'A'
The text was updated successfully, but these errors were encountered: