-
-
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 first in a commit chain improving @beartype to be robust against **hot reloading** (i.e., re-importation of previously imported modules containing one or more @beartype-decorated classes), en-route to resolving issue #288 kindly submitted by Cambridge researcher @awf (Andrew Fitzgibbon). Specifically, this issue improves our low-level `@beartype._decor._decortype.decor_type` decorator responsible for decorating classes to explicitly (in order): #. Detect **class redefinition** (i.e., redefinition of the same @beartype-decorated class). #. Clear all **problematic caches** (i.e., @beartype-specific internal caches that could possibly contain the prior definition of the current redefined class). Naturally, nothing is tested. We promise the world, however! (*Spinning spanners!*)
- Loading branch information
Showing
7 changed files
with
387 additions
and
205 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
Large diffs are not rendered by default.
Oops, something went wrong.
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