mirror of https://github.com/tiangolo/fastapi.git
📝 Remove outdated formatting from `path-params-numeric-validations.md` for languages `en`, `es` and `uk`. (#14059)
This commit is contained in:
parent
651603cb37
commit
744736af9c
|
|
@ -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 *}
|
||||
|
|
|
|||
|
|
@ -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 *}
|
||||
|
|
|
|||
|
|
@ -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 *}
|
||||
|
|
|
|||
Loading…
Reference in New Issue