mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-05 05:16:03 +00:00
hotfix: 针对python3.9的兼容性
This commit is contained in:
@@ -53,7 +53,7 @@ class CommandOperator(metaclass=abc.ABCMeta):
|
||||
|
||||
usage: str = None
|
||||
|
||||
parent_class: typing.Type[CommandOperator] | None = None
|
||||
parent_class: typing.Union[typing.Type[CommandOperator], None] = None
|
||||
"""父节点类。标记以供管理器在初始化时编织父子关系。"""
|
||||
|
||||
lowest_privilege: int = 0
|
||||
|
||||
Reference in New Issue
Block a user