From 8aae553b89a08741006a48607559d35c1b964ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Wed, 3 Dec 2025 14:43:59 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Tweak=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_stringified_annotations_simple.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test_stringified_annotations_simple.py b/tests/test_stringified_annotations_simple.py index eea0ac23d..9bd6d09d6 100644 --- a/tests/test_stringified_annotations_simple.py +++ b/tests/test_stringified_annotations_simple.py @@ -7,16 +7,17 @@ from typing_extensions import Annotated from .utils import needs_py310 +class Dep: + def __call__(self, request: Request): + return "test" + + @needs_py310 def test_stringified_annotations(): app = FastAPI() client = TestClient(app) - class Dep: - def __call__(self, request: Request): - return "test" - @app.get("/test/") def call(test: Annotated[str, Depends(Dep())]): return {"test": test}