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
def bug(): sequence = range(6) for k, _ in enumerate(sequence): pass return k
Regular Python returns 5 (correct), mypy compiled code returns 6 (wrong). Inside the loop the `k variable is correct.
Python 3.10.12 mypy 1.8.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Regular Python returns 5 (correct), mypy compiled code returns 6 (wrong). Inside the loop the `k variable is correct.
Python 3.10.12
mypy 1.8.0
The text was updated successfully, but these errors were encountered: