- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 101 for Tuple4 (0.08 sec)
-
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) -
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_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) -
okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt
eventListener.requestFailed(call, e) trackFailure(e) throw e } } @Throws(IOException::class) fun createRequestBody( request: Request, duplex: Boolean, ): Sink { this.isDuplex = duplex val contentLength = request.body!!.contentLength() eventListener.requestBodyStart(call) val rawRequestBody = codec.createRequestBody(request, contentLength)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.2K 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/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) -
docs/tr/docs/python-types.md
#### `Tuple` ve `Set` `Tuple` ve `set`lerin tiplerini bildirmek için de aynısını yapıyoruz: ```Python hl_lines="1 4" {!../../docs_src/python_types/tutorial007.py!} ``` Bu şu anlama geliyor: * `items_t` değişkeni sırasıyla `int`, `int`, ve `str` tiplerinden oluşan bir `tuple` türündedir . * `items_s` ise her öğesi `bytes` türünde olan bir `set` örneğidir.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.7K bytes - Viewed (0) -
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)