1
0
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:
LmeSzinc
2023-02-17 00:54:58 +08:00
parent cd1dc663d0
commit 7261235cc4
2 changed files with 16 additions and 4 deletions

View File

@@ -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.