-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
nested isinstances lose type information #10146
Copy link
Copy link
Open
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codetopic-join-v-unionUsing join vs. using unionsUsing join vs. using unionstopic-type-narrowingConditional type narrowing / binderConditional type narrowing / bindertopic-union-types
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongfalse-positivemypy gave an error on correct codemypy gave an error on correct codetopic-join-v-unionUsing join vs. using unionsUsing join vs. using unionstopic-type-narrowingConditional type narrowing / binderConditional type narrowing / bindertopic-union-types
Fields
Give feedbackNo fields configured for issues without a type.
Bug Report
To Reproduce
Expected Behavior
both types revealed as
Union[int, str]Actual Behavior
objectfrom second typeYour Environment
mypy.ini(and other config files): none