🎨 Auto format

This commit is contained in:
pre-commit-ci-lite[bot] 2026-02-11 20:42:07 +00:00 committed by GitHub
parent 1cd0a8b142
commit fa9af08f8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,4 @@
import sys
from typing import Optional, Union
import pytest
from dirty_equals import IsDict
@ -28,7 +27,7 @@ if sys.hexversion >= 0x3090000:
@app.post("/api2")
def api2(
integer_or_null: Annotated[Optional[int], Body(embed=True)] = DEFAULT,
integer_or_null: Annotated[int | None, Body(embed=True)] = DEFAULT,
) -> dict:
return {"received": integer_or_null}
@ -36,7 +35,7 @@ if sys.hexversion >= 0x3090000:
@app.post("/api3")
def api3(
integer_or_null: Annotated[Union[int, None], Body(embed=True)] = DEFAULT,
integer_or_null: Annotated[int | None, Body(embed=True)] = DEFAULT,
) -> dict:
return {"received": integer_or_null}
@ -44,7 +43,7 @@ if sys.hexversion >= 0x3090000:
@app.post("/api4")
def api4(integer_or_null: Optional[int] = Body(embed=True, default=DEFAULT)) -> dict:
def api4(integer_or_null: int | None = Body(embed=True, default=DEFAULT)) -> dict:
return {"received": integer_or_null}