diff --git a/docs_src/body/tutorial005_py39.py b/docs_src/body/tutorial005_py39.py index 32420e282..7a9c9c9d9 100644 --- a/docs_src/body/tutorial005_py39.py +++ b/docs_src/body/tutorial005_py39.py @@ -1,5 +1,3 @@ -from typing import Optional - from fastapi import FastAPI from pydantic import BaseModel @@ -7,7 +5,7 @@ app = FastAPI() class Item(BaseModel): - description: Optional[str] + description: str | None @app.post("/items/")