Update nonebot/adapters/__init__.py

Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
This commit is contained in:
Artin 2020-12-29 14:50:15 +08:00 committed by GitHub
parent f13befc4d8
commit 13f6a692a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,7 +364,7 @@ class Message(list, abc.ABC):
@staticmethod @staticmethod
@abc.abstractmethod @abc.abstractmethod
def _construct(msg: Union[Any]) -> Iterable[T_MessageSegment]: def _construct(msg: Union[str, list, dict, Any]) -> Iterable[T_MessageSegment]:
raise NotImplementedError raise NotImplementedError
def __add__(self: T_Message, other: Union[str, T_MessageSegment, def __add__(self: T_Message, other: Union[str, T_MessageSegment,