Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 350 for tutorial003_py310 (0.68 sec)

  1. docs/es/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    Aquí, aunque nuestra *path operation function* está devolviendo el mismo usuario de entrada que contiene la contraseña:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...hemos declarado el `response_model` para ser nuestro modelo `UserOut`, que no incluye la contraseña:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.7K bytes
    - Viewed (0)
  2. docs/ru/docs/advanced/dataclasses.md

    В таком случае вы можете просто заменить стандартные `dataclasses` на `pydantic.dataclasses`, которая является полностью совместимой заменой (drop-in replacement):
    
    {* ../../docs_src/dataclasses_/tutorial003_py310.py hl[1,4,7:10,13:16,22:24,27] *}
    
    1. Мы по-прежнему импортируем `field` из стандартных `dataclasses`.
    
    2. `pydantic.dataclasses` — полностью совместимая замена (drop-in replacement) для `dataclasses`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/query-params.md

    ///
    
    ## Query parameter type conversion { #query-parameter-type-conversion }
    
    You can also declare `bool` types, and they will be converted:
    
    {* ../../docs_src/query_params/tutorial003_py310.py hl[7] *}
    
    In this case, if you go to:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    or
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    or
    
    ```
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/query-params.md

    ///
    
    ## Conversão dos tipos de parâmetros de consulta { #query-parameter-type-conversion }
    
    Você também pode declarar tipos `bool`, e eles serão convertidos:
    
    {* ../../docs_src/query_params/tutorial003_py310.py hl[7] *}
    
    Nesse caso, se você for para:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    ou
    
    ```
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5K bytes
    - Viewed (0)
  5. docs/es/docs/tutorial/query-params.md

    ///
    
    ## Conversión de tipos en parámetros de query { #query-parameter-type-conversion }
    
    También puedes declarar tipos `bool`, y serán convertidos:
    
    {* ../../docs_src/query_params/tutorial003_py310.py hl[7] *}
    
    En este caso, si vas a:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    o
    
    ```
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. 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)
  7. tests/test_tutorial/test_header_params/test_tutorial003.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial003_py39"),
            pytest.param("tutorial003_py310", marks=needs_py310),
            pytest.param("tutorial003_an_py39"),
            pytest.param("tutorial003_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. docs/uk/docs/tutorial/query-params.md

    ///
    
    ## Перетворення типу Query параметра
    
    Ви також можете оголошувати параметри типу `bool`, і вони будуть автоматично конвертовані:
    
    {* ../../docs_src/query_params/tutorial003_py310.py hl[7] *}
    
    У цьому випадку, якщо Ви звернетесь до:
    
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    або
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    або
    
    ```
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_schema_extra_example/test_tutorial003.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial003_py39"),
            pytest.param("tutorial003_py310", marks=needs_py310),
            pytest.param("tutorial003_an_py39"),
            pytest.param("tutorial003_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
    - 5.1K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/query-params.md

    ///
    
    ## Преобразование типа параметра запроса { #query-parameter-type-conversion }
    
    Вы также можете объявлять параметры с типом `bool`, которые будут преобразованы соответственно:
    
    {* ../../docs_src/query_params/tutorial003_py310.py hl[7] *}
    
    В этом случае, если вы сделаете запрос:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    или
    
    ```
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.8K bytes
    - Viewed (0)
Back to top