-
-
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.
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 lightly refactors our forward reference proxy metaclass to manually rather than automatically memoize previously imported forward referees. In theory, doing so *should* enable subsequent commits to manually unmemoized all previously imported forward referees across the entire app on detecting when the user externally reloads one or more previously imported modules, which *should* then allow us to repair the last remaining broken unit test. (*Mighty sights!*)
- Loading branch information
Showing
4 changed files
with
132 additions
and
97 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