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

Can use deleted variable as a condition #1075

Closed
JukkaL opened this issue Dec 13, 2015 · 0 comments
Closed

Can use deleted variable as a condition #1075

JukkaL opened this issue Dec 13, 2015 · 0 comments
Labels
bug mypy got something wrong priority-2-low

Comments

@JukkaL
Copy link
Collaborator

JukkaL commented Dec 13, 2015

Now we catch many cases where code tries to use a deleted variable, but this is still not caught:

x = 1
del x
if x: ...   # no error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong priority-2-low
Projects
None yet
Development

No branches or pull requests

3 participants