改写战斗中替换group的逻辑

This commit is contained in:
Elaina 2024-10-13 01:24:58 +08:00
commit 7f89eb0db8
3890 changed files with 82290 additions and 0 deletions

13
mower/utils/deprecated.py Normal file
View file

@ -0,0 +1,13 @@
import functools
from mower.utils.log import logger
from mower.utils.traceback import caller_info
def deprecated(func):
@functools.wraps(func)
def new_func(*args, **kwargs):
logger.warning(f"已弃用的函数{func.__name__}{caller_info()}调用")
return func(*args, **kwargs)
return new_func