diff --git a/tests/test_custom_route_class.py b/tests/test_custom_route_class.py index bb31de8706..e503f4dd28 100644 --- a/tests/test_custom_route_class.py +++ b/tests/test_custom_route_class.py @@ -5,6 +5,7 @@ from fastapi.testclient import TestClient from inline_snapshot import snapshot from starlette.routing import Route +from typing import Any, Callable, Sequence app = FastAPI() @@ -121,10 +122,6 @@ def test_openapi_schema(): ) -from collections.abc import Callable, Sequence -from typing import Any - - class LegacyAPIRoute(APIRoute): """Route subclass with explicit __init__ matching the pre-strict_content_type signature."""