mirror of
https://github.com/nonebot/nonebot2.git
synced 2026-06-26 19:42:38 +00:00
🐛 Fix: WebSocket 基类 typo (#4095)
This commit is contained in:
@@ -209,7 +209,7 @@ class WebSocket(abc.ABC):
|
||||
elif isinstance(data, bytes):
|
||||
await self.send_bytes(data)
|
||||
else:
|
||||
raise TypeError("WebSocker send method expects str or bytes!")
|
||||
raise TypeError("WebSocket send method expects str or bytes!")
|
||||
|
||||
@abc.abstractmethod
|
||||
async def send_text(self, data: str) -> None:
|
||||
|
||||
Reference in New Issue
Block a user