-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Literal[A] <= Union[Literal[A], ...]
x 2.
This commit is the last in a commit chain improving our Decidedly Object-Oriented Runtime-checking (DOOR) API to correctly collate unions of literals against single literals, resolving both issues #276 and beartype/plum#99 kindly submitted by numerical physicist @PhilipVinc (Filippo Vicentini). @beartype now correctly orders the following two relations for all supported literal objects `A`: * `TypeHint(Literal[A]) <= TypeHint(Union[Literal[A], ...]) is True`. * `TypeHint(Union[Literal[A], ...]) <= TypeHint(Literal[A]) is False`. This commit chain required surprisingly extensive refactorings to the internal implementation of the `beartype.door` API and has thus been isolated to a temporary branch. Naturally, everything is working yet again. Praise be to the Sun, dismal though it is in Canada! (*Sunny bunnies!*)
- Loading branch information
Showing
19 changed files
with
310 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.