mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-01 00:02:34 +03:00
fix(typing): resolve mypy errors in api.routes.controller.chat
This commit is contained in:
parent
777258ff68
commit
6526beeb3d
@ -23,7 +23,7 @@ Nested under projects: /v3/projects/{project_id}/chat/...
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import uuid
|
import uuid
|
||||||
from typing import List, Optional
|
from typing import Any, List, Optional
|
||||||
|
|
||||||
from fastapi import APIRouter, Depends, HTTPException, Request, status
|
from fastapi import APIRouter, Depends, HTTPException, Request, status
|
||||||
from fastapi.responses import StreamingResponse
|
from fastapi.responses import StreamingResponse
|
||||||
@ -40,7 +40,7 @@ from .dependencies.authentication import get_current_active_user
|
|||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
responses = {404: {"model": schemas.ErrorMessage, "description": "Resource not found"}}
|
responses: dict[int | str, dict[str, Any]] = {404: {"model": schemas.ErrorMessage, "description": "Resource not found"}}
|
||||||
|
|
||||||
router = APIRouter(responses=responses)
|
router = APIRouter(responses=responses)
|
||||||
|
|
||||||
|
|||||||
@ -340,7 +340,6 @@ module = [
|
|||||||
"gns3server.api.routes.compute.vmware_nodes", # 10
|
"gns3server.api.routes.compute.vmware_nodes", # 10
|
||||||
"gns3server.api.routes.compute.vpcs_nodes", # 9
|
"gns3server.api.routes.compute.vpcs_nodes", # 9
|
||||||
"gns3server.api.routes.controller.acl", # 5
|
"gns3server.api.routes.controller.acl", # 5
|
||||||
"gns3server.api.routes.controller.chat", # 1
|
|
||||||
"gns3server.api.routes.controller.computes", # 6
|
"gns3server.api.routes.controller.computes", # 6
|
||||||
"gns3server.api.routes.controller.controller", # 10
|
"gns3server.api.routes.controller.controller", # 10
|
||||||
"gns3server.api.routes.controller.dependencies.authentication", # 11
|
"gns3server.api.routes.controller.dependencies.authentication", # 11
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user