-
-
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 last in a commit chain explicitly supporting `typing.NamedTuple` subclasses under PEP 563 (i.e., `from __future__ import annotations`), 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. @beartype now generically high strangeness like this: ```python from __future__ import annotations from typing import NamedTuple class HorribleTuple(typing.NamedTuple): my_eyes_are_bleeding: int how_bad_could_it_be = HorribleTuple(0xBADBAD) ``` @beartype took one for the team so that you didn't have to. (*Dithering slithering!*)
- Loading branch information
Showing
10 changed files
with
354 additions
and
267 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.