You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Type disappears from 3-member union in error message #7241
Are you reporting a bug, or opening a feature request?
Bug
Please insert below the code you are checking with mypy,
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
For mypy int is a subtype of float (because practicality beats purity), and thus transitively bool is a subtype of float. I don't think there is any action item here.
Activity
ilevkivskyi commentedon Jul 18, 2019
For mypy
intis a subtype offloat(because practicality beats purity), and thus transitivelyboolis a subtype offloat. I don't think there is any action item here.ilevkivskyi commentedon Jul 18, 2019
Actually, since there is inconsistency here, it makes sense to unify the behavior, but we already have #6168 to track this.