Non-overlapping identity check false-positive starting in 0.780 #9011
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-0-high
topic-literal-types
https://mypy-play.net/?mypy=latest&python=3.8&flags=strict&gist=9b082c260ecb9586b358a06c8583edc2
gives
This may be reasonable opinionated behavior, but wanted to flag it as a behavior change between 0.770 and 0.780
I would personally consider this to be a false positive. It's not obvious how to change the source code to make mypy happy here.
The text was updated successfully, but these errors were encountered: