From 9add8ff46d1c925d6c5a8c7308cb93f74e6bd36a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Fri, 20 Mar 2026 18:49:38 +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_ambiguous_params.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_ambiguous_params.py b/tests/test_ambiguous_params.py index 3d53224ad8..ce74933505 100644 --- a/tests/test_ambiguous_params.py +++ b/tests/test_ambiguous_params.py @@ -73,8 +73,10 @@ def test_multiple_annotations(): response = client.get("/multi-query", params={"foo": "1"}) assert response.status_code == 422 + def test_query_edge_cases(): app = FastAPI() + @app.get("/edge-query") async def read_edge(q: Annotated[str | None, Query()] = None): return {"q": q}