🐛 修复当消息与不支持的类型相加时抛出的异常类型错误 (#1166)

This commit is contained in:
Mix
2022-08-22 14:39:00 +08:00
committed by GitHub
parent be5ac88a18
commit 92ff1df419
2 changed files with 11 additions and 6 deletions

View File

@ -186,7 +186,7 @@ class Message(List[TMS], abc.ABC):
elif isinstance(other, Iterable):
self.extend(other)
else:
raise ValueError(f"Unsupported type: {type(other)}") # pragma: no cover
raise TypeError(f"Unsupported type {type(other)!r}")
return self
@overload