Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for Tuple (0.07 sec)

  1. tests/test_tuples.py

    @app.post("/tuple-of-models/")
    def post_tuple_of_models(square: Tuple[Coordinate, Coordinate]):
        return square
    
    
    @app.post("/tuple-form/")
    def hello(values: Tuple[int, int] = Form()):
        return values
    
    
    client = TestClient(app)
    
    
    def test_model_with_tuple_valid():
        data = {"items": [["foo", "bar"], ["baz", "whatelse"]]}
        response = client.post("/model-with-tuple/", json=data)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  2. fastapi/_compat.py

    
    sequence_annotation_to_type = {
        Sequence: list,
        List: list,
        list: list,
        Tuple: tuple,
        tuple: tuple,
        Set: set,
        set: set,
        FrozenSet: frozenset,
        frozenset: frozenset,
        Deque: deque,
        deque: deque,
    }
    
    sequence_types = tuple(sequence_annotation_to_type.keys())
    
    if PYDANTIC_V2:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:36:32 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  3. fastapi/dependencies/utils.py

            use_cache=depends.use_cache,
        )
        if security_requirement:
            sub_dependant.security_requirements.append(security_requirement)
        return sub_dependant
    
    
    CacheKey = Tuple[Optional[Callable[..., Any]], Tuple[str, ...]]
    
    
    def get_flat_dependant(
        dependant: Dependant,
        *,
        skip_repeats: bool = False,
        visited: Optional[List[CacheKey]] = None,
    ) -> Dependant:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 21:46:26 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

            defaultSettings.put(DefaultKeys.PARALLEL_PROCESSING, Boolean.FALSE);
            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;
        }
    
        protected String loadIndexSettings() throws IOException {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  5. docs/pt/docs/python-types.md

    Observe que a variável `item` é um dos elementos da lista `items`.
    
    E, ainda assim, o editor sabe que é um `str` e fornece suporte para isso.
    
    #### Tuple e Set
    
    Você faria o mesmo para declarar `tuple`s e `set`s:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial007_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 15 12:32:27 UTC 2024
    - 18K bytes
    - Viewed (0)
  6. docs/ru/docs/python-types.md

    И все же редактор знает, что это `str`, и поддерживает это.
    
    #### `Tuple` и `Set`
    
    Вы бы сделали то же самое, чтобы объявить `tuple` и `set`:
    
    ```Python hl_lines="1  4"
    {!../../docs_src/python_types/tutorial007.py!}
    ```
    
    Это означает:
    
    * Переменная `items_t` является `tuple` с 3 элементами: `int`, другим `int` и `str`.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. docs/en/docs/python-types.md

    Notice that the variable `item` is one of the elements in the list `items`.
    
    And still, the editor knows it is a `str`, and provides support for that.
    
    #### Tuple and Set
    
    You would do the same to declare `tuple`s and `set`s:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial007_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 11:47:53 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  8. docs/de/docs/python-types.md

    * `list`
    * `tuple`
    * `set`
    * `dict`
    
    Verwenden Sie für den Rest, wie unter Python 3.8, das `typing`-Modul:
    
    * `Union`
    * `Optional`
    * ... und andere.
    
    ////
    
    //// tab | Python 3.8+
    
    * `List`
    * `Tuple`
    * `Set`
    * `Dict`
    * `Union`
    * `Optional`
    * ... und andere.
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  9. docs/vi/docs/python-types.md

    Chú ý rằng, biến `item` là một trong các phần tử trong danh sách `items`.
    
    Và do vậy, trình soạn thảo biết nó là một `str`, và cung cấp sự hỗ trợ cho nó.
    
    #### Tuple and Set
    
    Bạn sẽ làm điều tương tự để khai báo các `tuple` và  các `set`:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial007_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  10. fastapi/encoders.py

        AnyUrl: str,
    }
    
    
    def generate_encoders_by_class_tuples(
        type_encoder_map: Dict[Any, Callable[[Any], Any]],
    ) -> Dict[Callable[[Any], Any], Tuple[Any, ...]]:
        encoders_by_class_tuples: Dict[Callable[[Any], Any], Tuple[Any, ...]] = defaultdict(
            tuple
        )
        for type_, encoder in type_encoder_map.items():
            encoders_by_class_tuples[encoder] += (type_,)
        return encoders_by_class_tuples
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top