-
-
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 resolves a critical oversight with respect to `beartype.claw`-fueled beartype import hooks, resolving issue #293 kindly submitted by Ontarian AI superstar MaximilienLC (Maximilien Le Cleï). Previously, `beartype.claw` failed to type-check PEP 562-compliant annotated variable assignments in methods. Now, `beartype.claw` does so: e.g., ```python class SoMuchClass(object): def so_much_method() -> None: # "beartype.claw" now raises an exception on this violation. Yah! so_much_variable: int = 'You no longer fool @beartype, variable." ``` (*Impressive impression in a massive session!*)
- Loading branch information
Showing
5 changed files
with
47 additions
and
27 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