Make mypy opt-out instead of opt-in (#33205)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
@@ -1680,6 +1680,7 @@ def disable_envs_cache() -> None:
|
||||
global __getattr__
|
||||
# If __getattr__ is wrapped by functions.cache, unwrap the caching layer.
|
||||
if _is_envs_cache_enabled():
|
||||
assert hasattr(__getattr__, "__wrapped__")
|
||||
__getattr__ = __getattr__.__wrapped__
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user