mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 15:36:59 +08:00
Refactor: Move del_cached_property to module.base.decorator
This commit is contained in:
@@ -138,18 +138,6 @@ def handle_adb_error(e):
|
||||
return False
|
||||
|
||||
|
||||
def del_cached_property(obj, name):
|
||||
"""
|
||||
Delete a cached property safely.
|
||||
|
||||
Args:
|
||||
obj:
|
||||
name (str):
|
||||
"""
|
||||
if name in obj.__dict__:
|
||||
del obj.__dict__[name]
|
||||
|
||||
|
||||
def get_serial_pair(serial):
|
||||
"""
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user