-
-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[internal] Add context manager to handle temporary unfreezing of `fro…
…zen_after_init` objects (#16863) This adds a safer way to temporarily unfreeze `frozen_after_init` objects, for example in tests. The API is not exposed to static typing (just like the existing `_unfreeze_instance`), but it will re-freeze once finished.
- Loading branch information
Christopher Neugebauer
authored
Sep 14, 2022
1 parent
ebcf1a1
commit 7e266c7
Showing
1 changed file
with
12 additions
and
1 deletion.
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