mirror of https://github.com/tiangolo/fastapi.git
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
This commit is contained in:
parent
bb64c976b9
commit
58f9c57a47
|
|
@ -14,6 +14,6 @@ def nullable_str(val: str) -> Union[str, None]:
|
|||
|
||||
@app.get("/items/")
|
||||
async def read_items(
|
||||
q: Annotated[Optional[str], Query(min_length=3), BeforeValidator(nullable_str)]
|
||||
q: Annotated[Optional[str], Query(min_length=3), BeforeValidator(nullable_str)],
|
||||
):
|
||||
return {"q": q}
|
||||
|
|
|
|||
Loading…
Reference in New Issue