feat: 内容过滤器的可扩展性

This commit is contained in:
RockChinQ
2024-03-08 20:22:06 +08:00
parent 7f554fd862
commit 22cb8a6a06
9 changed files with 53 additions and 26 deletions

View File

@@ -30,7 +30,7 @@ def operator_class(
parent_class (typing.Type[CommandOperator], optional): 父节点若为None则为顶级命令. Defaults to None.
Returns:
typing.Callable[[typing.Type[CommandOperator]], typing.Type[CommandOperator]]: 注册后的命令类
typing.Callable[[typing.Type[CommandOperator]], typing.Type[CommandOperator]]: 装饰器
"""
def decorator(cls: typing.Type[CommandOperator]) -> typing.Type[CommandOperator]: