]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📝 Remove outdated formatting from `path-params-numeric-validations.md` for languages...
authorSofie Van Landeghem <svlandeg@users.noreply.github.com>
Sat, 20 Sep 2025 16:27:21 +0000 (18:27 +0200)
committerGitHub <noreply@github.com>
Sat, 20 Sep 2025 16:27:21 +0000 (18:27 +0200)
docs/en/docs/tutorial/path-params-numeric-validations.md
docs/es/docs/tutorial/path-params-numeric-validations.md
docs/uk/docs/tutorial/path-params-numeric-validations.md

index ef1caea426406e879ba12ac15f5014b0d52261aa..f7f2d6ceb0e1279dbbc4d6c3d54c92e6e0d1bcae 100644 (file)
@@ -54,18 +54,8 @@ It doesn't matter for **FastAPI**. It will detect the parameters by their names,
 
 So, you can declare your function as:
 
-//// tab | Python 3.8 non-Annotated
-
-/// tip
-
-Prefer to use the `Annotated` version if possible.
-
-///
-
 {* ../../docs_src/path_params_numeric_validations/tutorial002.py hl[7] *}
 
-////
-
 But keep in mind that if you use `Annotated`, you won't have this problem, it won't matter as you're not using the function parameter default values for `Query()` or `Path()`.
 
 {* ../../docs_src/path_params_numeric_validations/tutorial002_an_py39.py *}
index 44d73b5ed8aa7d64946b1c3ff2db1857dd5d8e1b..4ea01753b4b8080d473c636103bbcb6abbc17b84 100644 (file)
@@ -54,18 +54,8 @@ No importa para **FastAPI**. Detectará los parámetros por sus nombres, tipos y
 
 Así que puedes declarar tu función como:
 
-//// tab | Python 3.8 non-Annotated
-
-/// tip | Consejo
-
-Prefiere usar la versión `Annotated` si es posible.
-
-///
-
 {* ../../docs_src/path_params_numeric_validations/tutorial002.py hl[7] *}
 
-////
-
 Pero ten en cuenta que si usas `Annotated`, no tendrás este problema, no importará ya que no estás usando los valores por defecto de los parámetros de la función para `Query()` o `Path()`.
 
 {* ../../docs_src/path_params_numeric_validations/tutorial002_an_py39.py *}
index 281ee183ce20d807fea687ea02d74110601a3c72..8ee4f480fec5aed5deccd240817ec8a4d73910cb 100644 (file)
@@ -55,18 +55,8 @@ Python видасть помилку, якщо розмістити значен
 
 Тому Ви можете оголосити Вашу функцію так:
 
-//// tab | Python 3.8 non-Annotated
-
-/// tip | Підказка
-
-За можливості віддавайте перевагу версії з використанням `Annotated`.
-
-///
-
 {* ../../docs_src/path_params_numeric_validations/tutorial002.py hl[7] *}
 
-////
-
 Але майте на увазі, що якщо Ви використовуєте `Annotated`, ця проблема не виникне, оскільки Ви не використовуєте значення за замовчуванням для параметрів `Query()` або `Path()`.
 
 {* ../../docs_src/path_params_numeric_validations/tutorial002_an_py39.py *}