```python 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