- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for tuple (0.16 sec)
-
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)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 11.8K bytes - Viewed (0) -
docs/uk/docs/python-types.md
Зверніть увагу, що змінна `item` є одним із елементів у списку `items`. І все ж редактор знає, що це `str`, і надає підтримку для цього. #### Tuple and Set (кортеж та набір) Ви повинні зробити те ж саме, щоб оголосити `tuple` і `set`: === "Python 3.8 і вище" ```Python hl_lines="1 4" {!> ../../../docs_src/python_types/tutorial007.py!} ``` === "Python 3.9 і вище"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 19.7K bytes - Viewed (0) -
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`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 14.6K bytes - Viewed (0) -
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: === "Python 3.9+" ```Python hl_lines="1" {!> ../../../docs_src/python_types/tutorial007_py39.py!} ``` === "Python 3.8+"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17K bytes - Viewed (0) -
fastapi/encoders.py
} 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
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 21:56:59 GMT 2024 - 10.8K bytes - Viewed (0) -
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:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 22.6K bytes - Viewed (0) -
fastapi/dependencies/utils.py
dependency_overrides_provider: Optional[Any] = None, dependency_cache: Optional[Dict[Tuple[Callable[..., Any], Tuple[str]], Any]] = None, async_exit_stack: AsyncExitStack, ) -> Tuple[ Dict[str, Any], List[Any], Optional[StarletteBackgroundTasks], Response, Dict[Tuple[Callable[..., Any], Tuple[str]], Any], ]: values: Dict[str, Any] = {} errors: List[Any] = []
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:52:56 GMT 2024 - 29.5K bytes - Viewed (0) -
docs/de/docs/tutorial/body-nested-models.md
```Python hl_lines="1" {!> ../../../docs_src/body_nested_models/tutorial002.py!} ``` ### Eine `list`e mit einem Typ-Parameter deklarieren Um Typen wie `list`, `dict`, `tuple` mit inneren Typ-Parametern (inneren Typen) zu deklarieren: * Wenn Sie eine Python-Version kleiner als 3.9 verwenden, importieren Sie das Äquivalent zum entsprechenden Typ vom `typing`-Modul
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 10.4K bytes - Viewed (0) -
docs/fr/docs/python-types.md
Et pourtant, l'éditeur sait qu'elle est de type `str` et pourra donc vous aider à l'utiliser. #### `Tuple` et `Set` C'est le même fonctionnement pour déclarer un `tuple` ou un `set` : ```Python hl_lines="1 4" {!../../../docs_src/python_types/tutorial007.py!} ``` Dans cet exemple : * La variable `items_t` est un `tuple` avec 3 éléments, un `int`, un deuxième `int`, et un `str`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 10.3K bytes - Viewed (0) -
docs/ja/docs/python-types.md
タイプがなければ、それはほぼ不可能です。 変数`item`はリスト`items`の要素の一つであることに注意してください。 それでも、エディタはそれが`str`であることを知っていて、そのためのサポートを提供しています。 #### `Tuple` と `Set` `tuple`と`set`の宣言も同様です: ```Python hl_lines="1 4" {!../../../docs_src/python_types/tutorial007.py!} ``` つまり: * 変数`items_t`は`int`、`int`、`str`の3つの項目を持つ`tuple`です * 変数`items_s`はそれぞれの項目が`bytes`型である`set`です。 #### `Dict` `dict`を宣言するためには、カンマ区切りで2つの型パラメータを渡します。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 11.8K bytes - Viewed (0)