-
-
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.
beartype.peps.resolve_pep563()
refactor x 1.
This commit is the first in a commit chain fundamentally refactoring our public **PEP 563 resolver** (i.e., the `beartype.peps.resolve_pep563()` function) from its current ad-hoc (and frankly broken) implementation to our newly resuscitated support for stringified type hints via our private `beartype._check.forward.fwdhint.resolve_hint()` function. Specifically, this commit: * Defines a new private `beartype._check.checkcall.make_beartype_call()` factory function streamlining the instantiation and initialization of `beartype._check.checkcall.BeartypeCall` dataclass instances. * Splits our PEP 563 unit tests into: * The existing `beartype_test.a00_unit.a40_api.peps.test_pep563` submodule, containing only unit tests specific to the `beartype.peps.resolve_pep563()` function. * A new `beartype_test.a70_decor.a40_code.a90_pep.test_decorpep563` submodule, containing all remaining PEP 563-specific unit tests. (*Splurge on a spongy purge!*)
- Loading branch information
Showing
7 changed files
with
416 additions
and
348 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
Oops, something went wrong.