Skip to content

Incorrect analysis of constant conditions in elif blocks. #1454

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

Closed
markshannon opened this issue Apr 29, 2016 · 1 comment
Closed

Incorrect analysis of constant conditions in elif blocks. #1454

markshannon opened this issue Apr 29, 2016 · 1 comment
Labels
bug mypy got something wrong

Comments

@markshannon
Copy link
Member

This line:
https://github.com/python/mypy/blob/master/mypy/semanal.py#L2647
repeatedly marks the final reachable block as unreachable.
It should mark all the following blocks as unreachable.

JukkaL added a commit that referenced this issue Apr 29, 2016
@JukkaL JukkaL added the bug mypy got something wrong label Apr 29, 2016
gvanrossum pushed a commit that referenced this issue Apr 29, 2016
@gvanrossum
Copy link
Member

Thanks, good find!

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