Merge pull request #693 from RockChinQ/fix/3.9-compability

Fix: 针对python3.9的兼容性
This commit is contained in:
Junyan Qin 2024-02-20 11:47:49 +08:00 committed by GitHub
commit 570c19f29f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ class CommandOperator(metaclass=abc.ABCMeta):
usage: str = None usage: str = None
parent_class: typing.Type[CommandOperator] | None = None parent_class: typing.Union[typing.Type[CommandOperator], None] = None
"""父节点类。标记以供管理器在初始化时编织父子关系。""" """父节点类。标记以供管理器在初始化时编织父子关系。"""
lowest_privilege: int = 0 lowest_privilege: int = 0

View File

@ -11,7 +11,7 @@ from ..provider import entities as llm_entities
class BaseEventModel(pydantic.BaseModel): class BaseEventModel(pydantic.BaseModel):
query: core_entities.Query | None query: typing.Union[core_entities.Query, None]
class Config: class Config:
arbitrary_types_allowed = True arbitrary_types_allowed = True

View File

@ -1,5 +1,5 @@
requests requests
openai openai>1.0.0
colorlog~=6.6.0 colorlog~=6.6.0
yiri-mirai-rc yiri-mirai-rc
aiocqhttp aiocqhttp