fix(typing): resolve mypy errors in api.routes.controller.snapshots

This commit is contained in:
Mark Paronyan 2026-09-28 04:57:39 +00:00
parent c340b18ba2
commit ebe6dee916
No known key found for this signature in database
GPG Key ID: 8DC7338A87FE22F8
2 changed files with 4 additions and 3 deletions

View File

@ -24,7 +24,7 @@ import logging
log = logging.getLogger()
from fastapi import APIRouter, Depends, status
from typing import List
from typing import Any, List
from uuid import UUID
from gns3server.controller.project import Project
@ -35,7 +35,9 @@ from gns3server.controller import Controller
from .dependencies.database import get_repository
from .dependencies.rbac import has_privilege
responses = {404: {"model": schemas.ErrorMessage, "description": "Could not find project or snapshot"}}
responses: dict[int | str, dict[str, Any]] = {
404: {"model": schemas.ErrorMessage, "description": "Could not find project or snapshot"}
}
router = APIRouter(responses=responses)

View File

@ -349,7 +349,6 @@ module = [
"gns3server.api.routes.controller.llm_model_configs", # 32
"gns3server.api.routes.controller.pools", # 8
"gns3server.api.routes.controller.projects", # 16
"gns3server.api.routes.controller.snapshots", # 1
"gns3server.api.routes.controller.templates", # 10
"gns3server.api.routes.controller.users", # 14
"gns3server.api.server", # 2