]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🌐 Update Japanese translation of `docs/ja/docs/tutorial/query-params.md` (#10808)
authorTakayoshi Urushio <uru@craft-works.jp>
Sat, 30 Mar 2024 23:22:21 +0000 (08:22 +0900)
committerGitHub <noreply@github.com>
Sat, 30 Mar 2024 23:22:21 +0000 (18:22 -0500)
Co-authored-by: Alejandra <90076947+alejsdev@users.noreply.github.com>
docs/ja/docs/tutorial/query-params.md

index 5202009ef8676dbda1ef2ac27b7148d0dbba20ad..957726b9f02f438bd4f4bc076c0da757ea06aee5 100644 (file)
@@ -73,11 +73,6 @@ http://127.0.0.1:8000/items/?skip=20
 !!! check "確認"
     パスパラメータ `item_id` はパスパラメータであり、`q` はそれとは違ってクエリパラメータであると判別できるほど**FastAPI** が賢いということにも注意してください。
 
-!!! note "備考"
-    FastAPIは、`= None`があるおかげで、`q`がオプショナルだとわかります。
-
-    `Optional[str]` の`Optional` はFastAPIでは使用されていません(FastAPIは`str`の部分のみ使用します)。しかし、`Optional[str]` はエディタがコードのエラーを見つけるのを助けてくれます。
-
 ## クエリパラメータの型変換
 
 `bool` 型も宣言できます。これは以下の様に変換されます: