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
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.
Bug
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
bool
is missing from the actual output.No such error if
T
is a concrete type, i.e. replaceT = TypeVar("T")
withclass T: pass
.No such error if the union returned by
get_value
inf
has only 2 members and the union returned byget_value
ing
has only 3 members.Do you see the same issue after installing mypy from Git master?
0.730+dev.9508e0efd2e89971f186440eac84eedbf991a4a9
(from master)None
The text was updated successfully, but these errors were encountered: