nested isinstances lose type information #10146
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
topic-join-v-union
Using join vs. using unions
topic-type-narrowing
Conditional type narrowing / binder
topic-union-types
Bug Report
To Reproduce
Expected Behavior
both types revealed as
Union[int, str]
Actual Behavior
object
from second typeYour Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: