mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
Merge pull request #693 from RockChinQ/fix/3.9-compability
Fix: 针对python3.9的兼容性
This commit is contained in:
commit
570c19f29f
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user