refactor: remove unused imports

This commit is contained in:
Mark Paronyan committed 2026-10-03 19:43:58 +03:00
1 parent 084004586c
commit 306d8fbde4
75 files changed
+21 -101

No files matched your search

@@ -19,7 +19,7 @@ import logging
import os
import signal
import time
from typing import Dict, List
from typing import Dict
import psutil
from fastapi import APIRouter, Depends, FastAPI, Request, WebSocket, WebSocketDisconnect, status
@@ -18,7 +18,6 @@
API routes for links.
"""
import asyncio
import logging
import os
from typing import Any, List, Union
+1 -1
View File
@@ -63,7 +63,7 @@ def _load_netmiko_device_types() -> schemas.NetmikoDeviceTypeList:
# imported them yet); failures are logged by the package itself, do not
# fail the whole endpoint.
try:
from gns3server.agent.gns3_copilot.utils import custom_netmiko
pass
except Exception as e:
log.warning(f"Could not register GNS3-copilot custom Netmiko drivers: {e}")
@@ -28,7 +28,7 @@ log = logging.getLogger(__name__)
from typing import Any, List, Optional, Union
from uuid import UUID
from fastapi import APIRouter, Depends, HTTPException, Query, Request, Response, status
from fastapi import APIRouter, Depends, Query, Request, Response, status
from gns3server import schemas
from gns3server.controller import Controller
+1 -1
View File
@@ -23,7 +23,7 @@ import logging
from typing import List, Optional
from uuid import UUID
from fastapi import APIRouter, Depends, HTTPException, Response, status
from fastapi import APIRouter, Depends, HTTPException, status
from fastapi.security import OAuth2PasswordRequestForm
import gns3server.db.models as models