mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-30 19:56:04 -04:00
📝 Update source examples and docs from Python 3.9 to 3.10 (#14900)
This commit is contained in:
committed by
GitHub
parent
d06ab3f5c7
commit
c9e2277d8b
8
docs_src/path_params/tutorial002_py310.py
Normal file
8
docs_src/path_params/tutorial002_py310.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/items/{item_id}")
|
||||
async def read_item(item_id: int):
|
||||
return {"item_id": item_id}
|
||||
Reference in New Issue
Block a user