Consider this valid code:
def foo(x: AnyStr) -> AnyStr:
if x == '': # False positive here
...
return x
With --strict-equality
this produces a "Non-overlapping equality check ...", because the function body is checked multiple times with both values of AnyStr
.