- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 130 for tuple3 (0.29 seconds)
-
tests/test_dependency_yield_scope.py
return named_session, session BrokenSessionsDep = Annotated[ tuple[NamedSession, Session], Depends(get_named_func_session) ] NamedSessionsFuncDep = Annotated[ tuple[NamedSession, Session], Depends(get_named_func_session, scope="function") ] RegularSessionsDep = Annotated[ tuple[NamedSession, Session], Depends(get_named_regular_func_session) ] app = FastAPI() router = APIRouter()
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 6.7K bytes - Click Count (0) -
fastapi/_compat/v2.py
def validate( self, value: Any, values: dict[str, Any] = {}, # noqa: B006 *, loc: tuple[int | str, ...] = (), ) -> tuple[Any, list[dict[str, Any]]]: try: return ( self._type_adapter.validate_python(value, from_attributes=True), [], )Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 16.7K bytes - Click Count (0) -
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)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Dec 26 20:40:26 GMT 2025 - 11.1K bytes - Click Count (0) -
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_py310.py hl[1] *} This means: * The variable `items_t` is a `tuple` with 3 items, an `int`, another `int`, and a `str`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 11K bytes - Click Count (0) -
tests/test_invalid_path_param.py
def test_invalid_tuple(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel): title: str @app.get("/items/{id}") def read_items(id: tuple[Item, Item]): pass # pragma: no cover def test_invalid_dict(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel): title: str
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.6K bytes - Click Count (0) -
fastapi/security/utils.py
def get_authorization_scheme_param( authorization_header_value: str | None, ) -> tuple[str, str]: if not authorization_header_value: return "", "" scheme, _, param = authorization_header_value.partition(" ")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:41:21 GMT 2026 - 261 bytes - Click Count (0) -
docs/ru/docs/python-types.md
И всё же редактор кода знает, что это `str`, и даёт соответствующую поддержку. #### Tuple и Set { #tuple-and-set } Аналогично вы бы объявили `tuple` и `set`: {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *} Это означает: * Переменная `items_t` — это `tuple` из 3 элементов: `int`, ещё один `int` и `str`. * Переменная `items_s` — это `set`, и каждый элемент имеет тип `bytes`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 17.7K bytes - Click Count (0) -
docs_src/python_types/tutorial007_py310.py
def process_items(items_t: tuple[int, int, str], items_s: set[bytes]):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 99 bytes - Click Count (0) -
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_py310.py hl[1] *} Esto significa: * La variable `items_t` es un `tuple` con 3 ítems, un `int`, otro `int`, y un `str`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 11.6K bytes - Click Count (1) -
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_py310.py hl[1] *} Isso significa: * A variável `items_t` é uma `tuple` com 3 itens, um `int`, outro `int` e uma `str`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 11.7K bytes - Click Count (0)