fix: ruff errors

This commit is contained in:
Arjan Singh 2025-08-29 15:36:16 -07:00
parent 8544db8667
commit 9bf37b4ae7
No known key found for this signature in database
GPG Key ID: B1102A5F9699979D
2 changed files with 3 additions and 3 deletions

View File

@ -35,12 +35,12 @@ from comfy_api.internal import _ComfyNodeInternal
from app.user_manager import UserManager
from app.model_manager import ModelFileManager
from app.custom_node_manager import CustomNodeManager
from typing import Optional, Union, Callable, Awaitable
from typing import Optional, Union
from api_server.routes.internal.internal_routes import InternalRoutes
from protocol import BinaryEventTypes
# Import cache control middleware
from middleware.cache_middleware import cache_control, ONE_HOUR, ONE_DAY, IMG_EXTENSIONS
from middleware.cache_middleware import cache_control
async def send_socket_catch_exception(function, message):
try:

View File

@ -3,7 +3,7 @@
import pytest
from aiohttp import web
from aiohttp.test_utils import make_mocked_request
from typing import Dict, Any, List
from typing import Dict, Any
from middleware.cache_middleware import cache_control, ONE_HOUR, ONE_DAY, IMG_EXTENSIONS