🐛 matcher.send returned none

This commit is contained in:
yanyongyu
2021-03-24 00:28:37 +08:00
parent 48fae782d7
commit f00ce8b4f6
2 changed files with 13 additions and 9 deletions

View File

@ -109,7 +109,7 @@ class Bot(abc.ABC):
raise NotImplementedError
@abc.abstractmethod
async def call_api(self, api: str, **data):
async def call_api(self, api: str, **data) -> Any:
"""
:说明:
@ -130,8 +130,9 @@ class Bot(abc.ABC):
raise NotImplementedError
@abc.abstractmethod
async def send(self, event: "Event",
message: Union[str, "Message", "MessageSegment"], **kwargs):
async def send(self, event: "Event", message: Union[str, "Message",
"MessageSegment"],
**kwargs) -> Any:
"""
:说明: