Sync fastapi docs from 50fa3f7c on 2026-01-11
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Annotated, List, Union
|
||||
from typing import Annotated, Union
|
||||
|
||||
from fastapi import FastAPI, Header
|
||||
|
||||
@@ -6,5 +6,5 @@ app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/items/")
|
||||
async def read_items(x_token: Annotated[Union[List[str], None], Header()] = None):
|
||||
async def read_items(x_token: Annotated[Union[list[str], None], Header()] = None):
|
||||
return {"X-Token values": x_token}
|
||||
|
||||
Reference in New Issue
Block a user