mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-26 15:44:34 +02:00
Complete type annotations for API endpoints.
This commit is contained in:
1 parent
cefab8d362
commit
9404c00411
35 files changed
+730
-414
No files matched your search
@@ -32,7 +32,7 @@ router = APIRouter()
|
||||
|
||||
|
||||
@router.get("")
|
||||
async def http_notification():
|
||||
async def http_notification() -> StreamingResponse:
|
||||
"""
|
||||
Receive controller notifications about the controller from HTTP stream.
|
||||
"""
|
||||
@@ -47,7 +47,7 @@ async def http_notification():
|
||||
|
||||
|
||||
@router.websocket("/ws")
|
||||
async def notification_ws(websocket: WebSocket):
|
||||
async def notification_ws(websocket: WebSocket) -> None:
|
||||
"""
|
||||
Receive project notifications about the controller from WebSocket.
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user