From 1f8589b4acf090c4d478fe1c7fc80a254b2f3054 Mon Sep 17 00:00:00 2001 From: kotoYoshi Date: Thu, 4 Jun 2026 23:37:56 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20return=20type=20annotation?= =?UTF-8?q?s=20to=20path=20params=20tutorial=20example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs_src/path_params/tutorial003_py310.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs_src/path_params/tutorial003_py310.py b/docs_src/path_params/tutorial003_py310.py index 5f0aa09234..18af9a8474 100644 --- a/docs_src/path_params/tutorial003_py310.py +++ b/docs_src/path_params/tutorial003_py310.py @@ -4,10 +4,10 @@ app = FastAPI() @app.get("/users/me") -async def read_user_me(): +async def read_user_me() -> dict: return {"user_id": "the current user"} @app.get("/users/{user_id}") -async def read_user(user_id: str): +async def read_user(user_id: str) -> dict: return {"user_id": user_id}