Wrong "Non-overlapping equality check" warning #12561
Labels
bug
mypy got something wrong
topic-calls
Function calls, *args, **kwargs, defaults
topic-overlap
Overlapping equality check
Running this code:
with mypy 0.942 and "strict_equality" enabled leads to:
I think this is wrong, as clearly, mypy accepts
Foo
as a correct argument tobar
, in which case checking iff
inside the function is of typeFoo
should also be valid...The text was updated successfully, but these errors were encountered: