Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 123 for tuple4 (0.18 seconds)

  1. 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
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  2. docs/uk/docs/python-types.md

    І все ж редактор знає, що це `str`, і надає підтримку для цього.
    
    #### Tuple and 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 18:27:41 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  3. fastapi/openapi/utils.py

        *,
        route: routing.APIRoute,
        operation_ids: set[str],
        model_name_map: ModelNameMap,
        field_mapping: dict[
            tuple[ModelField, Literal["validation", "serialization"]], dict[str, Any]
        ],
        separate_input_output_schemas: bool = True,
    ) -> tuple[dict[str, Any], dict[str, Any], dict[str, Any]]:
        path = {}
        security_schemes: dict[str, Any] = {}
        definitions: dict[str, Any] = {}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  4. tests/test_dependency_security_overrides.py

        return "alice", required_scopes.scopes
    
    
    def get_data():
        return [1, 2, 3]
    
    
    def get_data_override():
        return [3, 4, 5]
    
    
    @app.get("/user")
    def read_user(
        user_data: tuple[str, list[str]] = Security(get_user, scopes=["foo", "bar"]),
        data: list[int] = Depends(get_data),
    ):
        return {"user": user_data[0], "scopes": user_data[1], "data": data}
    
    
    client = TestClient(app)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.4K bytes
    - Click Count (1)
  5. docs/zh-hant/docs/tutorial/query-params-str-validations.md

    #### 使用 `value.startswith()` 的字串 { #string-with-value-startswith }
    
    你注意到了嗎?字串的 `value.startswith()` 可以接收一個 tuple,並逐一檢查 tuple 中的每個值:
    
    {* ../../docs_src/query_params_str_validations/tutorial015_an_py310.py ln[16:19] hl[17] *}
    
    #### 隨機項目 { #a-random-item }
    
    透過 `data.items()` 我們會得到一個包含每個字典項目鍵值對 tuple 的 <dfn title="可以用 for 迴圈遍歷的東西,例如 list、set 等等。">iterable object</dfn>。
    
    我們用 `list(data.items())` 把這個可疊代物件轉成正式的 `list`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.8K bytes
    - Click Count (0)
  6. docs/fr/docs/python-types.md

    Et pourtant, l'éditeur sait que c'est un `str` et fournit le support approprié.
    
    #### Tuple et Set { #tuple-and-set }
    
    Vous feriez la même chose pour déclarer des `tuple` et des `set` :
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    Cela signifie :
    
    * La variable `items_t` est un `tuple` avec 3 éléments, un `int`, un autre `int`, et un `str`.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 12.7K bytes
    - Click Count (0)
  7. docs/zh-hant/docs/python-types.md

    沒有型別時,幾乎不可能做到這點。
    
    請注意,變數 `item` 是清單 `items` 中的一個元素。
    
    即便如此,編輯器仍然知道它是 `str`,並提供相應的支援。
    
    #### Tuple 與 Set { #tuple-and-set }
    
    你也可以用相同方式來宣告 `tuple` 與 `set`:
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    這代表:
    
    * 變數 `items_t` 是一個有 3 個項目的 `tuple`,分別是 `int`、`int` 和 `str`。
    * 變數 `items_s` 是一個 `set`,而其中每個項目都是 `bytes` 型別。
    
    #### Dict { #dict }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  8. fastapi/dependencies/utils.py

            response=response,
            dependency_cache=dependency_cache,
        )
    
    
    def _validate_value_with_model_field(
        *, field: ModelField, value: Any, values: dict[str, Any], loc: tuple[str, ...]
    ) -> tuple[Any, list[Any]]:
        if value is None:
            if field.field_info.is_required():
                return None, [get_missing_field_error(loc=loc)]
            else:
                return deepcopy(field.default), []
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 38.7K bytes
    - Click Count (3)
  9. guava-tests/test/com/google/common/collect/HashBasedTableTest.java

        table3.put("foo", 1, 'a');
        assertEquals((Character) 'a', table3.get("foo", 1));
    
        Table<String, Integer, Character> table4 = HashBasedTable.create(0, 0);
        table4.put("foo", 1, 'a');
        assertEquals((Character) 'a', table4.get("foo", 1));
      }
    
      public void testCreateWithInvalidSizes() {
        assertThrows(IllegalArgumentException.class, () -> HashBasedTable.create(100, -5));
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/RequestBody.kt

       * bodies may only be used with HTTP/2. Calls to HTTP/1 servers will fail before the HTTP request
       * is transmitted. If you cannot ensure that your client and server both support HTTP/2, do not
       * use this feature.
       *
       * ### Duplex APIs
       *
       * With regular request bodies it is not legal to write bytes to the sink passed to
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Oct 07 14:16:29 GMT 2025
    - 9.3K bytes
    - Click Count (0)
Back to Top