mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 15:49:25 +08:00
Fix: Deleting a cached property will calculate it
This commit is contained in:
@@ -86,7 +86,7 @@ def del_cached_property(obj, name):
|
||||
obj:
|
||||
name (str):
|
||||
"""
|
||||
if hasattr(obj, name):
|
||||
if 'attr' in obj.__dict__:
|
||||
del obj.__dict__[name]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user