From 5d30cfe7b970c55e26c3116fe0ecc58d709cdf71 Mon Sep 17 00:00:00 2001 From: Arya Rizky Date: Tue, 12 May 2026 18:58:16 +0700 Subject: [PATCH] fix: move stray import to top of file (E402) --- tests/test_custom_route_class.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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."""