- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 68 for Tuple (0.02 sec)
-
tests/test_invalid_sequence_param.py
from typing import Dict, List, Optional, Tuple import pytest from fastapi import FastAPI, Query from pydantic import BaseModel def test_invalid_sequence(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel): title: str @app.get("/items/") def read_items(q: List[Item] = Query(default=None)): pass # pragma: no cover
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 1.2K 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`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 14.6K bytes - Viewed (0) -
tests/test_invalid_path_param.py
from typing import Dict, List, Tuple import pytest from fastapi import FastAPI from pydantic import BaseModel def test_invalid_sequence(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel): title: str @app.get("/items/{id}") def read_items(id: List[Item]): pass # pragma: no cover def test_invalid_tuple():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Jun 03 17:59:40 UTC 2019 - 1.7K 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: //// 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) -
docs_src/python_types/tutorial007.py
from typing import Set, Tuple def process_items(items_t: Tuple[int, int, str], items_s: Set[bytes]):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Apr 11 17:20:32 UTC 2020 - 131 bytes - Viewed (0) -
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) -
docs/es/docs/python-types.md
El editor aún sabe que es un `str` y provee soporte para ello. #### Tuples y Sets Harías lo mismo para declarar `tuple`s y `set`s: ```Python hl_lines="1 4" {!../../docs_src/python_types/tutorial007.py!} ``` Esto significa: * La variable `items_t` es un `tuple` con 3 ítems, un `int`, otro `int`, y un `str`. * La variable `items_s` es un `set` y cada uno de sus ítems es de tipo `bytes`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.1K bytes - Viewed (0) -
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) -
doc/next/6-stdlib/99-minor/go/types/66626.md
[`MethodSet.Methods`](/pkg/go/types#MethodSet.Methods), [`Named.Methods`](/pkg/go/types#Named.Methods), [`Scope.Children`](/pkg/go/types#Scope.Children), [`Struct.Fields`](/pkg/go/types#Struct.Fields), [`Tuple.Variables`](/pkg/go/types#Tuple.Variables), [`TypeList.Types`](/pkg/go/types#TypeList.Types), [`TypeParamList.TypeParams`](/pkg/go/types#TypeParamList.TypeParams),
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Jul 31 22:54:09 UTC 2024 - 1K bytes - Viewed (0) -
docs_src/python_types/tutorial007_py39.py
def process_items(items_t: tuple[int, int, str], items_s: set[bytes]):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 99 bytes - Viewed (0)