mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +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