Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 642 for tutorial007_py39 (0.76 sec)

  1. docs/es/docs/tutorial/body-nested-models.md

    ```Python
    images: list[Image]
    ```
    
    como en:
    
    {* ../../docs_src/body_nested_models/tutorial008_py39.py hl[13] *}
    
    ## Soporte de editor en todas partes { #editor-support-everywhere }
    
    Y obtienes soporte de editor en todas partes.
    
    Incluso para elementos dentro de listas:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  2. 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)
  3. docs/de/docs/tutorial/extra-models.md

    Auf die gleiche Weise können Sie Responses von Listen von Objekten deklarieren.
    
    Dafür verwenden Sie Pythons Standard-`typing.List` (oder nur `list` in Python 3.9 und höher):
    
    {* ../../docs_src/extra_models/tutorial004_py39.py hl[18] *}
    
    ## Response mit beliebigem `dict` { #response-with-arbitrary-dict }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 8K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/extra-models.md

    Таким же образом вы можете определять ответы как списки объектов.
    
    Для этого используйте `typing.List` из стандартной библиотеки Python (или просто `list` в Python 3.9 и выше):
    
    {* ../../docs_src/extra_models/tutorial004_py39.py hl[18] *}
    
    ## Ответ с произвольным `dict` { #response-with-arbitrary-dict }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_custom_response/test_tutorial008.py

    from pathlib import Path
    
    from fastapi.testclient import TestClient
    
    from docs_src.custom_response import tutorial008_py39
    from docs_src.custom_response.tutorial008_py39 import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial008_py39.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 502 bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/path-params-numeric-validations.md

    Поэтому вы можете определить функцию так:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial002_py39.py hl[7] *}
    
    Но имейте в виду, что если вы используете `Annotated`, вы не столкнётесь с этой проблемой, так как вы не используете значения по умолчанию параметров функции для `Query()` или `Path()`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/body-nested-models.md

    ```Python
    images: List[Image]
    ```
    або в Python 3.9 і вище:
    
    ```Python
    images: list[Image]
    ```
    
    наприклад:
    
    {* ../../docs_src/body_nested_models/tutorial008_py39.py hl[13] *}
    
    ## Підтримка в редакторі всюди
    
    Ви отримаєте підтримку в редакторі всюди.
    
    Навіть для елементів у списках:
    
    <img src="/img/tutorial/body-nested-models/image01.png">
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Feb 28 14:18:01 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/extra-models.md

    Da mesma forma, você pode declarar respostas de listas de objetos.
    
    Para isso, use o padrão Python `typing.List` (ou simplesmente `list` no Python 3.9 e superior):
    
    {* ../../docs_src/extra_models/tutorial004_py39.py hl[18] *}
    
    ## Resposta com `dict` arbitrário { #response-with-arbitrary-dict }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  9. docs/pt/docs/how-to/extending-openapi.md

    Primeiro, escreva toda a sua aplicação **FastAPI** normalmente:
    
    {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[1,4,7:9] *}
    
    ### Gerar o esquema OpenAPI { #generate-the-openapi-schema }
    
    Em seguida, use a mesma função utilitária para gerar o esquema OpenAPI, dentro de uma função `custom_openapi()`:
    
    {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[2,15:21] *}
    
    ### Modificar o esquema OpenAPI { #modify-the-openapi-schema }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  10. docs/ru/docs/how-to/extending-openapi.md

    Сначала напишите приложение **FastAPI** как обычно:
    
    {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[1,4,7:9] *}
    
    ### Сгенерируйте схему OpenAPI { #generate-the-openapi-schema }
    
    Затем используйте ту же вспомогательную функцию для генерации схемы OpenAPI внутри функции `custom_openapi()`:
    
    {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[2,15:21] *}
    
    ### Измените схему OpenAPI { #modify-the-openapi-schema }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.9K bytes
    - Viewed (0)
Back to top