Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 46 of 46 for tuple (0.22 sec)

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

    {!../../../docs_src/response_model/tutorial005.py!}
    ```
    
    !!! tip "팁"
        문법 `{"name", "description"}`은 두 값을 갖는 `set`을 만듭니다.
    
        이는 `set(["name", "description"])`과 동일합니다.
    
    #### `set` 대신 `list` 사용하기
    
    `list` 또는 `tuple` 대신 `set`을 사용하는 법을 잊었더라도, FastAPI는 `set`으로 변환하고 정상적으로 작동합니다:
    
    ```Python hl_lines="31  37"
    {!../../../docs_src/response_model/tutorial006.py!}
    ```
    
    ## 요약
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/body-nested-models.md

    ```Python hl_lines="1"
    {!> ../../../docs_src/body_nested_models/tutorial002.py!}
    ```
    
    ### 📣 `list` ⏮️ 🆎 🔢
    
    📣 🆎 👈 ✔️ 🆎 🔢 (🔗 🆎), 💖 `list`, `dict`, `tuple`:
    
    * 🚥 👆 🐍 ⏬ 🔅 🌘 3️⃣.9️⃣, 🗄 👫 🌓 ⏬ ⚪️➡️ `typing` 🕹
    * 🚶‍♀️ 🔗 🆎(Ⓜ) "🆎 🔢" ⚙️ ⬜ 🗜: `[` & `]`
    
    🐍 3️⃣.9️⃣ ⚫️ 🔜:
    
    ```Python
    my_list: list[str]
    ```
    
    ⏬ 🐍 ⏭ 3️⃣.9️⃣, ⚫️ 🔜:
    
    ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  3. docs/ru/docs/tutorial/response-model.md

        Того же самого можно достичь используя `set(["name", "description"])`.
    
    #### Что если использовать `list` вместо `set`?
    
    Если вы забыли про `set` и использовали структуру `list` или `tuple`, FastAPI автоматически преобразует этот объект в `set`, чтобы обеспечить корректную работу:
    
    === "Python 3.10+"
    
        ```Python hl_lines="29  35"
        {!> ../../../docs_src/response_model/tutorial006_py310.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 30.5K bytes
    - Viewed (0)
  4. docs/en/docs/release-notes.md

    * Fix handling form *path operation* parameters declared with pure classes like `list`, `tuple`, etc. PR [#856](https://github.com/tiangolo/fastapi/pull/856) by [@nsidnev](https://github.com/nsidnev).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  5. fastapi/routing.py

    import json
    from contextlib import AsyncExitStack
    from enum import Enum, IntEnum
    from typing import (
        Any,
        Callable,
        Coroutine,
        Dict,
        List,
        Optional,
        Sequence,
        Set,
        Tuple,
        Type,
        Union,
    )
    
    from fastapi import params
    from fastapi._compat import (
        ModelField,
        Undefined,
        _get_model_config,
        _model_dump,
        _normalize_errors,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  6. fastapi/openapi/models.py

        dependentSchemas: Optional[Dict[str, "SchemaOrBool"]] = None
        prefixItems: Optional[List["SchemaOrBool"]] = None
        # TODO: uncomment and remove below when deprecating Pydantic v1
        # It generales a list of schemas for tuples, before prefixItems was available
        # items: Optional["SchemaOrBool"] = None
        items: Optional[Union["SchemaOrBool", List["SchemaOrBool"]]] = None
        contains: Optional["SchemaOrBool"] = None
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
Back to top