mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-11 22:46:38 +00:00
💡 add adapter docstring
This commit is contained in:
@ -265,7 +265,7 @@ class Bot(BaseBot):
|
||||
config: Config,
|
||||
self_id: str,
|
||||
*,
|
||||
websocket: WebSocket = None):
|
||||
websocket: Optional[WebSocket] = None):
|
||||
if connection_type not in ["http", "websocket"]:
|
||||
raise ValueError("Unsupported connection type")
|
||||
|
||||
|
Reference in New Issue
Block a user