-
-
Notifications
You must be signed in to change notification settings - Fork 51
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 exhaustively unit tests improves to our internal resolution of `typing.ForwardRef(...)` objects that additionally consider the `typing.ForwardRef.__forward_module__` dunder attribute first introduced by Python ≥ 3.9. (*Indifferent diffidence is no decadent dissidence!*)
- Loading branch information
Showing
11 changed files
with
327 additions
and
379 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.