Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 643 for tutorial005_py39 (0.07 sec)

  1. docs/en/docs/tutorial/extra-models.md

    In this case, you can use `typing.Dict` (or just `dict` in Python 3.9 and above):
    
    {* ../../docs_src/extra_models/tutorial005_py39.py hl[6] *}
    
    ## Recap { #recap }
    
    Use multiple Pydantic models and inherit freely for each case.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  2. docs/en/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003_py39.py hl[1] *}
    
    Because the editor knows the types of the variables, you don't only get completion, you also get error checks:
    
    <img src="/img/python-types/image04.png">
    
    Now you know that you have to fix it, convert `age` to a string with `str(age)`:
    
    {* ../../docs_src/python_types/tutorial004_py39.py hl[2] *}
    
    ## Declaring types { #declaring-types }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/extra-models.md

    使用同样的方式也可以声明由对象列表构成的响应。
    
    为此,请使用标准的 Python `typing.List`:
    
    {* ../../docs_src/extra_models/tutorial004_py39.py hl[18] *}
    
    ## 任意 `dict` 构成的响应
    
    任意的 `dict` 都能用于声明响应,只要声明键和值的类型,无需使用 Pydantic 模型。
    
    事先不知道可用的字段 / 属性名时(Pydantic 模型必须知道字段是什么),这种方式特别有用。
    
    此时,可以使用 `typing.Dict`:
    
    {* ../../docs_src/extra_models/tutorial005_py39.py hl[6] *}
    
    ## 小结
    
    针对不同场景,可以随意使用不同的 Pydantic 模型继承定义的基类。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/extra-models.md

    In diesem Fall können Sie `typing.Dict` verwenden (oder nur `dict` in Python 3.9 und höher):
    
    {* ../../docs_src/extra_models/tutorial005_py39.py hl[6] *}
    
    ## Zusammenfassung { #recap }
    
    Verwenden Sie gerne mehrere Pydantic-Modelle und vererben Sie je nach Bedarf.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 8K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/extra-models.md

    В этом случае вы можете использовать `typing.Dict` (или просто `dict` в Python 3.9 и выше):
    
    {* ../../docs_src/extra_models/tutorial005_py39.py hl[6] *}
    
    ## Резюме { #recap }
    
    Используйте несколько Pydantic-моделей и свободно применяйте наследование для каждой из них.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/extra-models.md

    Neste caso, você pode usar `typing.Dict` (ou simplesmente `dict` no Python 3.9 e superior):
    
    {* ../../docs_src/extra_models/tutorial005_py39.py hl[6] *}
    
    ## Recapitulação { #recap }
    
    Use vários modelos Pydantic e herde livremente para cada caso.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  7. docs/pt/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003_py39.py hl[1] *}
    
    Como o editor conhece os tipos de variáveis, você não obtém apenas o preenchimento automático, mas também as verificações de erro:
    
    <img src="/img/python-types/image04.png">
    
    Agora você sabe que precisa corrigí-lo, converta `age` em uma string com `str(age)`:
    
    {* ../../docs_src/python_types/tutorial004_py39.py hl[2] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  8. docs/es/docs/python-types.md

    {* ../../docs_src/python_types/tutorial003_py39.py hl[1] *}
    
    Porque el editor conoce los tipos de las variables, no solo obtienes autocompletado, también obtienes chequeo de errores:
    
    <img src="/img/python-types/image04.png">
    
    Ahora sabes que debes corregirlo, convertir `age` a un string con `str(age)`:
    
    {* ../../docs_src/python_types/tutorial004_py39.py hl[2] *}
    
    ## Declaración de tipos { #declaring-types }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.4K bytes
    - Viewed (1)
  9. tests/test_tutorial/test_security/test_tutorial005.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="mod",
        params=[
            pytest.param("tutorial005_py39"),
            pytest.param("tutorial005_py310", marks=needs_py310),
            pytest.param("tutorial005_an_py39"),
            pytest.param("tutorial005_an_py310", marks=needs_py310),
        ],
    )
    def get_mod(request: pytest.FixtureRequest):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/extra-models.md

    {* ../../docs_src/extra_models/tutorial004_py39.py hl[18] *}
    
    
    ## 임의의 `dict` 응답
    
    Pydantic 모델을 사용하지 않고, 키와 값의 타입만 선언하여 평범한 임의의 `dict`로 응답을 선언할 수도 있습니다.
    
    이는 Pydantic 모델에 필요한 유효한 필드/속성 이름을 사전에 알 수 없는 경우에 유용합니다.
    
    이 경우, `typing.Dict`를 사용할 수 있습니다(또는 Python 3.9 이상에서는 단순히 `dict`를 사용할 수 있습니다):
    
    {* ../../docs_src/extra_models/tutorial005_py39.py hl[6] *}
    
    
    ## 요약
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri May 30 13:38:33 UTC 2025
    - 8.4K bytes
    - Viewed (0)
Back to top