From 034ef57e3c236274c69b9ed363e94b4fb903fae4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 12:01:45 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Auto=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_custom_route_class.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/test_custom_route_class.py b/tests/test_custom_route_class.py index 31532c90c8..32bf5ab7e4 100644 --- a/tests/test_custom_route_class.py +++ b/tests/test_custom_route_class.py @@ -1,11 +1,12 @@ +from collections.abc import Callable, Sequence +from typing import Any + import pytest from fastapi import APIRouter, FastAPI from fastapi.routing import APIRoute from fastapi.testclient import TestClient from inline_snapshot import snapshot from starlette.routing import Route -from typing import Any -from collections.abc import Callable, Sequence app = FastAPI() @@ -123,8 +124,6 @@ def test_openapi_schema(): ) - - class LegacyAPIRoute(APIRoute): """Route subclass with explicit __init__ matching the pre-strict_content_type signature.""" @@ -204,4 +203,3 @@ def test_legacy_route_class_with_explicit_init() -> None: response = client.get("/items") assert response.status_code == 200 assert response.json() == {"items": []} -