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

no error when accessing instance variable from class #11832

Closed
DetachHead opened this issue Dec 23, 2021 · 2 comments
Closed

no error when accessing instance variable from class #11832

DetachHead opened this issue Dec 23, 2021 · 2 comments
Labels
bug mypy got something wrong

Comments

@DetachHead DetachHead added the bug mypy got something wrong label Dec 23, 2021
@sobolevn
Copy link
Member

sobolevn commented Dec 23, 2021

It happens because mypy does not know which variables are class- and which are instance- level.

It would be really hard to fix 😢

@AlexWaygood
Copy link
Member

Closing as a duplicate of #4886.

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

No branches or pull requests

3 participants