mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Fix: [GIA] Sync utils functions to ALAS
This commit is contained in:
@@ -112,6 +112,17 @@ def del_cached_property(obj, name):
|
||||
pass
|
||||
|
||||
|
||||
def has_cached_property(obj, name):
|
||||
"""
|
||||
Check if a property is cached.
|
||||
|
||||
Args:
|
||||
obj:
|
||||
name (str):
|
||||
"""
|
||||
return name in obj.__dict__
|
||||
|
||||
|
||||
def function_drop(rate=0.5, default=None):
|
||||
"""
|
||||
Drop function calls to simulate random emulator stuck, for testing purpose.
|
||||
|
||||
Reference in New Issue
Block a user