mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
Update nonebot/adapters/__init__.py
Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
This commit is contained in:
parent
f13befc4d8
commit
13f6a692a7
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user