Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for tuple (0.02 sec)

  1. tests/test_tuples.py

    
    class ItemGroup(BaseModel):
        items: list[tuple[str, str]]
    
    
    class Coordinate(BaseModel):
        x: float
        y: float
    
    
    @app.post("/model-with-tuple/")
    def post_model_with_tuple(item_group: ItemGroup):
        return item_group
    
    
    @app.post("/tuple-of-models/")
    def post_tuple_of_models(square: tuple[Coordinate, Coordinate]):
        return square
    
    
    @app.post("/tuple-form/")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  2. fastapi/_compat/v2.py

    
    def _remap_definitions_and_field_mappings(
        *,
        model_name_map: ModelNameMap,
        definitions: dict[str, Any],
        field_mapping: dict[
            tuple[ModelField, Literal["validation", "serialization"]], JsonSchemaValue
        ],
    ) -> tuple[
        dict[tuple[ModelField, Literal["validation", "serialization"]], JsonSchemaValue],
        dict[str, Any],
    ]:
        old_name_to_new_name_map = {}
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

            return defaultSettings;
        }
    
        private List<Tuple<String, Object>> defaultArraySettings() {
            final List<Tuple<String, Object>> tuples = new ArrayList<>();
            tuples.add(new Tuple<>(DefaultKeys.SUPPORTED_FIELDS, "content"));
            return tuples;
        }
    
        /**
         * Loads the index settings from a resource file.
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  4. docs/pt/docs/python-types.md

    E, ainda assim, o editor sabe que é um `str` e fornece suporte para isso.
    
    #### Tuple e Set { #tuple-and-set }
    
    Você faria o mesmo para declarar `tuple`s e `set`s:
    
    {* ../../docs_src/python_types/tutorial007_py39.py hl[1] *}
    
    Isso significa que:
    
    * A variável `items_t` é uma `tuple` com 3 itens, um `int`, outro `int` e uma `str`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  5. docs/es/docs/python-types.md

    Y aún así, el editor sabe que es un `str` y proporciona soporte para eso.
    
    #### Tuple y Set { #tuple-and-set }
    
    Harías lo mismo para declarar `tuple`s y `set`s:
    
    {* ../../docs_src/python_types/tutorial007_py39.py hl[1] *}
    
    Esto significa:
    
    * La variable `items_t` es un `tuple` con 3 ítems, un `int`, otro `int`, y un `str`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.4K bytes
    - Viewed (1)
  6. tests/benchmarks/test_general_performance.py

    def client() -> Iterator[TestClient]:
        with TestClient(app) as client:
            yield client
    
    
    def _bench_get(benchmark, client: TestClient, path: str) -> tuple[int, bytes]:
        warmup = client.get(path)
        assert warmup.status_code == 200
    
        def do_request() -> tuple[int, bytes]:
            response = client.get(path)
            return response.status_code, response.content
    
        return benchmark(do_request)
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 20:40:26 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. docs/en/docs/python-types.md

    And still, the editor knows it is a `str`, and provides support for that.
    
    #### Tuple and Set { #tuple-and-set }
    
    You would do the same to declare `tuple`s and `set`s:
    
    {* ../../docs_src/python_types/tutorial007_py39.py hl[1] *}
    
    This means:
    
    * The variable `items_t` is a `tuple` with 3 items, an `int`, another `int`, and a `str`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  8. docs/ru/docs/python-types.md

    И всё же редактор кода знает, что это `str`, и даёт соответствующую поддержку.
    
    #### Tuple и Set { #tuple-and-set }
    
    Аналогично вы бы объявили `tuple` и `set`:
    
    {* ../../docs_src/python_types/tutorial007_py39.py hl[1] *}
    
    Это означает:
    
    * Переменная `items_t` — это `tuple` из 3 элементов: `int`, ещё один `int` и `str`.
    * Переменная `items_s` — это `set`, и каждый элемент имеет тип `bytes`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  9. docs/de/docs/python-types.md

    #### Tupel und Menge { #tuple-and-set }
    
    Das Gleiche gilt für die Deklaration eines Tupels – `tuple` – und einer Menge – `set`:
    
    {* ../../docs_src/python_types/tutorial007_py39.py hl[1] *}
    
    Das bedeutet:
    
    * Die Variable `items_t` ist ein `tuple` mit 3 Elementen, einem `int`, einem weiteren `int` und einem `str`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.9K bytes
    - Viewed (1)
  10. docs/uk/docs/python-types.md

    Зверніть увагу, що змінна `item` є одним із елементів у списку `items`.
    
    І все ж редактор знає, що це `str`, і надає підтримку для цього.
    
    #### Tuple and Set (кортеж та набір)
    
    Ви повинні зробити те ж саме, щоб оголосити `tuple` і `set`:
    
    //// tab | Python 3.8 і вище
    
    ```Python hl_lines="1  4"
    {!> ../../docs_src/python_types/tutorial007.py!}
    ```
    
    ////
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top