Update syntax to Python 3.10+

This commit is contained in:
Yurii Motov 2026-02-12 11:02:52 +01:00
parent 20b848cf6b
commit d34f1e6bcf
1 changed files with 2 additions and 2 deletions

View File

@ -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}