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