added TYPE_CHECKING to middleware.py

This commit is contained in:
2026-06-14 13:48:02 -04:00
parent ab2521867e
commit 736717c2f8
+5 -1
View File
@@ -1,10 +1,14 @@
"""Middleware for the FastAPI application.""" """Middleware for the FastAPI application."""
from compression import zstd from compression import zstd
from typing import TYPE_CHECKING
from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint
from starlette.requests import Request
from starlette.responses import Response from starlette.responses import Response
if TYPE_CHECKING:
from starlette.requests import Request
MINIMUM_RESPONSE_SIZE = 500 MINIMUM_RESPONSE_SIZE = 500