Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Type variables bound by forward references.
This commit adds explicit support for PEP 484-compliant type variables bound by forward references (e.g., type hints of the form `TypeVar('{TypeVarName}', bounds='{UndefinedType}')`), fully resolving issue #367 kindly submitted by Dark Typing Priestess of Darkness @iamrecursion (Ara Adkins). Previously, @beartype only partially supported such variables due to @leycec failing to realize that such variables even existed and constituted a valid use case. Now, @beartype explicitly supports such variables via a newly refactored error-handling backend and unit tests exercising this edge case. (*Undeniably unduly undulations!*)
- Loading branch information
Showing
8 changed files
with
345 additions
and
272 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
Oops, something went wrong.