- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 321 for tutorial007_py310 (0.06 sec)
-
docs_src/query_params_str_validations/tutorial007_py310.py
Charlie Marsh <******@****.***> 1711472213 -0400
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 304 bytes - Viewed (0) -
docs_src/body_nested_models/tutorial007_py310.py
Sebastián Ramírez <******@****.***> 1641564691 +0100
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 520 bytes - Viewed (0) -
docs/de/docs/tutorial/body-nested-models.md
Für ein Beispiel können wir ein `Image`-Modell definieren. {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[7:9] *} ### Das Kindmodell als Typ verwenden { #use-the-submodel-as-a-type } Und dann können wir es als Typ eines Attributes verwenden: {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[18] *} Das würde bedeuten, dass **FastAPI** einen Body wie folgt erwartet: ```JSON {Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.6K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-nested-models.md
Por exemplo, nós podemos definir um modelo `Image`: {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[7:9] *} ### Use o sub-modelo como um tipo { #use-the-submodel-as-a-type } E então podemos usa-lo como o tipo de um atributo: {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[18] *} Isso significa que o **FastAPI** vai esperar um corpo similar à: ```JSON { "name": "Foo",Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.4K bytes - Viewed (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial007.py
import importlib import pytest from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial007_py39"), pytest.param("tutorial007_py310", marks=needs_py310), pytest.param("tutorial007_an_py39"), pytest.param("tutorial007_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.6K bytes - Viewed (0) -
docs/es/docs/tutorial/body-nested-models.md
Por ejemplo, podemos definir un modelo `Image`: {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[7:9] *} ### Usar el submodelo como tipo { #use-the-submodel-as-a-type } Y luego podemos usarlo como el tipo de un atributo: {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[18] *} Esto significaría que **FastAPI** esperaría un cuerpo similar a: ```JSON { "name": "Foo",Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.2K bytes - Viewed (0) -
tests/test_tutorial/test_body_nested_models/test_tutorial007.py
import importlib import pytest from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial007_py39"), pytest.param("tutorial007_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 10.8K bytes - Viewed (0) -
docs/uk/docs/tutorial/body-nested-models.md
{* ../../docs_src/body_nested_models/tutorial002_py310.py hl[12] *} ## Типи множин Але потім ми подумали, що теги не повинні повторюватися, вони, ймовірно, повинні бути унікальними рядками. І Python має спеціальний тип даних для множин унікальних елементів — це `set`. Тому ми можемо оголосити `tags` як множину рядків: {* ../../docs_src/body_nested_models/tutorial003_py310.py hl[12] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Feb 28 14:18:01 UTC 2025 - 10.8K bytes - Viewed (0) -
docs/en/docs/tutorial/body-nested-models.md
{* ../../docs_src/body_nested_models/tutorial002_py310.py hl[12] *} ## Set types { #set-types } But then we think about it, and realize that tags shouldn't repeat, they would probably be unique strings. And Python has a special data type for sets of unique items, the `set`. Then we can declare `tags` as a set of strings: {* ../../docs_src/body_nested_models/tutorial003_py310.py hl[12] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.7K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-nested-models.md
Например, мы можем определить модель `Image`: {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[7:9] *} ### Использование подмодели как типа { #use-the-submodel-as-a-type } Также мы можем использовать эту модель как тип атрибута: {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[18] *} Это означает, что **FastAPI** будет ожидать тело запроса, аналогичное этому: ```JSON {Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 11.5K bytes - Viewed (0)