mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-26 11:49:56 -04:00
🎨 Lint and format tutorial src files
This commit is contained in:
1 parent
d9fbead646
commit
b0d62b3410
60 files changed
+166
-234
No files matched your search
@@ -1,12 +1,11 @@
|
||||
from fastapi import FastAPI, Query, Path
|
||||
from fastapi import FastAPI, Path
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/items/{item_id}")
|
||||
async def read_items(
|
||||
q: str,
|
||||
item_id: int = Path(..., title="The ID of the item to get"),
|
||||
q: str, item_id: int = Path(..., title="The ID of the item to get")
|
||||
):
|
||||
results = {"item_id": item_id}
|
||||
if q:
|
||||
|
||||
Reference in new issue
Block a user