mirror of https://github.com/tiangolo/fastapi.git
docs: remove Python 3.9 example for tutorial005
This commit is contained in:
parent
59d708fc4d
commit
2f17a7a79a
|
|
@ -1,13 +0,0 @@
|
||||||
from fastapi import FastAPI
|
|
||||||
from pydantic import BaseModel
|
|
||||||
|
|
||||||
app = FastAPI()
|
|
||||||
|
|
||||||
|
|
||||||
class Item(BaseModel):
|
|
||||||
description: str | None
|
|
||||||
|
|
||||||
|
|
||||||
@app.post("/items/")
|
|
||||||
async def create_item(item: Item):
|
|
||||||
return item
|
|
||||||
Loading…
Reference in New Issue