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