-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit is the next in a commit chain explicitly supporting `typing.NamedTuple` subclasses under PEP 563 (i.e., `from __future__ import annotations`), en-route to resolving issue #318 kindly submitted by the cosmically rare-earth GitHub element @kasium. For unknown reasons, `typing.NamedTuple` subclasses encapsulate type hints stringified by PEP 563 as `typing.ForwardRef(...)` objects -- which is just all manner of strange. In response, this commit globally refactors away our antiquated **beartypistry type cache** (managed by the `beartype._check.forward.fwdtype` submodule) in favour of our dramatically preferable **forward reference proxy API** (defined by the `beartype._check.forward.reference` subpackage). Sadly, doing so broke one unit test that has yet to be repaired. Sadness flows like wine. (*Stable but rat-like ratio is unlikeable!*)
- Loading branch information
Showing
19 changed files
with
558 additions
and
396 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
Oops, something went wrong.