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

Class turned into a variable isn't updated if re-exported #4775

Open
ilevkivskyi opened this issue Mar 21, 2018 · 0 comments
Open

Class turned into a variable isn't updated if re-exported #4775

ilevkivskyi opened this issue Mar 21, 2018 · 0 comments
Labels

Comments

@ilevkivskyi
Copy link
Member

Consider this test case in fine grained mode:

[case testGoodBaseClassSpoiled]
import a
[file a.py]
import b
class C(b.B):
    pass
[file b.py]
from c import B
[file c.py]
class B:
    pass
[file c.py.2]
B = 1
[out]

Currently, mypy doesn't give any error on the second run, although base class is not more valid. If I remove the re-export, then everything works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant