False positive: unreachable #10806
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
topic-reachability
Detecting unreachable code
Bug Report
false positive unreachable
To Reproduce
Expected Behavior
no error
Actual Behavior
main.py:8: error: Statement is unreachable
Found 1 error in 1 file (checked 1 source file)
(Write what happened.)
Your Environment
https://mypy-play.net/?mypy=latest&python=3.10&flags=warn-unreachable&gist=c41cd432e95c591743aa1369f36823d1
The text was updated successfully, but these errors were encountered: