-
-
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.
Non-self-cached type hint caching x 3.
This commit is the next in a commit chain internally caching **non-self-cached type hints** (i.e., hints that do *not* internally cache themselves somewhere like PEP 563- or 585-compliant type hints) and coercing semantically equal non-self-cached type hints into syntactically equal `@beartype`-cached type hints, dramatically improving both the space and time efficiency of such hints. Specifically, this commit documents an unresolved issue in which a generic under Python >= 3.9 is used to annotate one or more callables in both subscripted and unsubscripted forms (so, a crazy edge-case unlikely to ever manifest in physical reality, but nonetheless an unresolved issue) as well as reducing the previously defined private `beartype._util.hint.pep.utilhintpeptest.is_hint_pep_uncached` tester to an efficient `O(1)` test. (*Lousy lake trout with unslaked clout!*)
- Loading branch information
Showing
16 changed files
with
291 additions
and
148 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
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.