- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for lists (0.15 sec)
-
docs/en/docs/tutorial/response-model.md
`response_model` receives the same type you would declare for a Pydantic model field, so, it can be a Pydantic model, but it can also be, e.g. a `list` of Pydantic models, like `List[Item]`. FastAPI will use this `response_model` to do all the data documentation, validation, etc. and also to **convert and filter the output data** to its type declaration. !!! tip
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17.9K bytes - Viewed (0) -
docs/fr/docs/tutorial/query-params-str-validations.md
] } ``` #### Utiliser `list` Il est aussi possible d'utiliser directement `list` plutôt que `List[str]` : ```Python hl_lines="7" {!../../../docs_src/query_params_str_validations/tutorial013.py!} ``` !!! note Dans ce cas-là, **FastAPI** ne vérifiera pas le contenu de la liste.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jul 27 18:53:21 GMT 2023 - 9.8K bytes - Viewed (0) -
docs/de/docs/tutorial/body-nested-models.md
```Python my_list: list[str] ``` Und in Python-Versionen vor 3.9: ```Python from typing import List my_list: List[str] ``` Das ist alles Standard-Python-Syntax für Typdeklarationen. Verwenden Sie dieselbe Standardsyntax für Modellattribute mit inneren Typen. In unserem Beispiel können wir also bewirken, dass `tags` spezifisch eine „Liste von Strings“ ist: === "Python 3.10+" ```Python hl_lines="12"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 10.4K bytes - Viewed (0) -
docs/fr/docs/features.md
Mais, **tout fonctionne** par défaut. ### Validation * Validation pour la plupart (ou tous?) les **types de données** Python incluant: * objets JSON (`dict`). * listes JSON (`list`) définissant des types d'éléments. * Champs String (`str`), définition de longueur minimum ou maximale. * Nombres (`int`, `float`) avec valeur minimale and maximale, etc.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.1K bytes - Viewed (0) -
docs/de/docs/tutorial/query-params-str-validations.md
``` !!! note "Hinweis" Beachten Sie, dass FastAPI in diesem Fall den Inhalt der Liste nicht überprüft. Zum Beispiel würde `List[int]` überprüfen (und dokumentieren) dass die Liste Ganzzahlen enthält. `list` alleine macht das nicht. ## Deklarieren von mehr Metadaten Sie können mehr Informationen zum Parameter hinzufügen.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 17:58:59 GMT 2024 - 27.7K bytes - Viewed (0) -
docs/de/docs/tutorial/response-model.md
``` * `description: Union[str, None] = None` (oder `str | None = None` in Python 3.10) hat einen Defaultwert `None`. * `tax: float = 10.5` hat einen Defaultwert `10.5`. * `tags: List[str] = []` hat eine leere Liste als Defaultwert: `[]`. Aber Sie möchten diese vielleicht vom Resultat ausschließen, wenn Sie gar nicht gesetzt wurden.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:26:58 GMT 2024 - 19.9K bytes - Viewed (0) -
docs/es/docs/index.md
</p> <p align="center"> FastAPI framework, alto desempeño, fácil de aprender, rápido de programar, listo para producción </p> <p align="center"> <a href="https://github.com/tiangolo/fastapi/actions?query=workflow%3ATest" target="_blank"> <img src="https://github.com/tiangolo/fastapi/workflows/Test/badge.svg" alt="Test">
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 29 05:18:04 GMT 2024 - 19K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-nested-models.md
``` ### Объявление `list` с указанием типов для вложенных элементов Объявление типов для элементов (внутренних типов) вложенных в такие типы как `list`, `dict`, `tuple`: * Если у вас Python версии ниже чем 3.9, импортируйте их аналог из модуля `typing` * Передайте внутренний(ие) тип(ы) как "параметры типа", используя квадратные скобки: `[` и `]` В Python версии 3.9 это будет выглядеть так: ```Python my_list: list[str] ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 14.9K bytes - Viewed (0) -
.github/actions/people/app/main.py
author: Union[Author, None] = None class Replies(BaseModel): nodes: List[CommentsNode] class DiscussionsCommentsNode(CommentsNode): replies: Replies class Comments(BaseModel): nodes: List[CommentsNode] class DiscussionsComments(BaseModel): nodes: List[DiscussionsCommentsNode] class DiscussionsNode(BaseModel): number: int
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 17:38:21 GMT 2024 - 19.2K bytes - Viewed (1) -
docs/en/docs/python-types.md
In this case, `str` is the type parameter passed to `List` (or `list` in Python 3.9 and above). That means: "the variable `items` is a `list`, and each of the items in this list is a `str`". !!! tip If you use Python 3.9 or above, you don't have to import `List` from `typing`, you can use the same regular `list` type instead.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17K bytes - Viewed (0)