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 heavily refactors the beartype codebase to globally replace *almost* all remaining usage of the antiquated beartypistry with proper forward reference proxies. Doing so significantly improves the maintainability and debuggability of forward reference handling throughout beartype. This is important, because it preserves @leycec's sanity in the short term. (*Clueless blue lessons!*)
- Loading branch information