删除类型

This commit is contained in:
hemengyang
2022-01-12 18:00:56 +08:00
parent e29db806cc
commit 705a6f7fbf
13 changed files with 48 additions and 195 deletions

View File

@ -27,13 +27,11 @@ class Bot(abc.ABC):
_calling_api_hook: Set[T_CallingAPIHook] = set()
"""
:类型: ``Set[T_CallingAPIHook]``
:说明: call_api 时执行的函数
:说明: call_api 时执行的函数
"""
_called_api_hook: Set[T_CalledAPIHook] = set()
"""
:类型: ``Set[T_CalledAPIHook]``
:说明: call_api 后执行的函数
:说明: call_api 后执行的函数
"""
def __init__(self, adapter: "Adapter", self_id: str):

View File

@ -26,13 +26,11 @@ class MessageSegment(Mapping, abc.ABC, Generic[TM]):
type: str
"""
- 类型: ``str``
- 说明: 消息段类型
- 说明: 消息段类型
"""
data: Dict[str, Any] = field(default_factory=lambda: {})
"""
- 类型: ``Dict[str, Union[str, list]]``
- 说明: 消息段数据
- 说明: 消息段数据
"""
@classmethod