From d34f1e6bcf83d555d1a64bd02e131f250738a5db Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Thu, 12 Feb 2026 11:02:52 +0100 Subject: [PATCH] Update syntax to Python 3.10+ --- tests/test_nested_annotated_in_sequence.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_nested_annotated_in_sequence.py b/tests/test_nested_annotated_in_sequence.py index 09e4363e2..40b314559 100644 --- a/tests/test_nested_annotated_in_sequence.py +++ b/tests/test_nested_annotated_in_sequence.py @@ -1,4 +1,4 @@ -from typing import Annotated, Union +from typing import Annotated from dirty_equals import IsList from fastapi import FastAPI, Query @@ -11,7 +11,7 @@ app = FastAPI() @app.get("/") -def read_root(foo: Annotated[Union[MaxSizedSet, None], Query()] = None): +def read_root(foo: Annotated[MaxSizedSet | None, Query()] = None): return {"foo": foo}