-
Notifications
You must be signed in to change notification settings - Fork 216
Open
Labels
bugSomething isn't workingSomething isn't workingset-theoretic typesunions, intersections and moreunions, intersections and more
Milestone
Description
This equivalence follows from the fact that bool is equivalent to Literal[True] | Literal[False] and from the fact that Literal[True] is a subtype of AlwaysTruthy. A proof of the fact that these are equivalent can be found in the fact that there are two ways that the union Literal[False] | Literal[True] | AlwaysTruthy could be validly simplified:
(Literal[False] | Literal[True]) | AlwaysTruthy->bool | AlwaysTruthyLiteral[False] | (Literal[True] | AlwaysTruthy)->Literal[False] | AlwaysTruthy
We don't currently recognise that AlwaysTruthy | bool and AlwaysTruthy | Literal[False] are equivalent types; this should be fixed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingset-theoretic typesunions, intersections and moreunions, intersections and more