Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 116 for Tuple5 (0.04 seconds)

  1. docs/en/docs/tutorial/body-nested-models.md

    ### Declare a `list` with a type parameter { #declare-a-list-with-a-type-parameter }
    
    To declare types that have type parameters (internal types), like `list`, `dict`, `tuple`,
    pass the internal type(s) as "type parameters" using square brackets: `[` and `]`
    
    ```Python
    my_list: list[str]
    ```
    
    That's all standard Python syntax for type declarations.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/tutorial/body-nested-models.md

    ## 具有型別參數的列表欄位 { #list-fields-with-type-parameter }
    
    不過,Python 有一種專門的方式來宣告具有內部型別(「型別參數」)的列表:
    
    ### 宣告帶有型別參數的 `list` { #declare-a-list-with-a-type-parameter }
    
    要宣告具有型別參數(內部型別)的型別,例如 `list`、`dict`、`tuple`,使用方括號 `[` 與 `]` 傳入內部型別作為「型別參數」:
    
    ```Python
    my_list: list[str]
    ```
    
    以上都是標準的 Python 型別宣告語法。
    
    對於具有內部型別的模型屬性,也使用相同的標準語法。
    
    因此,在我們的範例中,可以讓 `tags` 明確成為「字串的列表」:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

      override fun createRequestBody(
        request: Request,
        contentLength: Long,
      ): Sink =
        when {
          request.body?.isDuplex() == true -> {
            throw ProtocolException(
              "Duplex connections are not supported for HTTP/1",
            )
          }
    
          request.isChunked -> {
            newChunkedSink()
          }
    
          // Stream a request body of unknown length.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 17.6K bytes
    - Click Count (7)
  4. src/cmd/api/main_test.go

    		w.writeType(buf, typ.Elem())
    
    	case *types.Struct:
    		buf.WriteString("struct")
    
    	case *types.Pointer:
    		buf.WriteByte('*')
    		w.writeType(buf, typ.Elem())
    
    	case *types.Tuple:
    		panic("should never see a tuple type")
    
    	case *types.Signature:
    		buf.WriteString("func")
    		w.writeSignature(buf, typ)
    
    	case *types.Interface:
    		buf.WriteString("interface{")
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Mar 02 13:20:41 GMT 2026
    - 31.4K bytes
    - Click Count (0)
  5. docs/ko/docs/tutorial/body-nested-models.md

    ## 타입 매개변수가 있는 리스트 필드 { #list-fields-with-type-parameter }
    
    하지만 파이썬에는 내부 타입, 즉 "타입 매개변수"를 사용해 리스트를 선언하는 특정한 방법이 있습니다:
    
    ### 타입 매개변수로 `list` 선언 { #declare-a-list-with-a-type-parameter }
    
    `list`, `dict`, `tuple`처럼 타입 매개변수(내부 타입)를 갖는 타입을 선언하려면,
    대괄호 `[` 및 `]`를 사용해 내부 타입(들)을 "타입 매개변수"로 전달하세요.
    
    ```Python
    my_list: list[str]
    ```
    
    이 모든 것은 타입 선언을 위한 표준 파이썬 문법입니다.
    
    내부 타입을 갖는 모델 어트리뷰트에 대해 동일한 표준 문법을 사용하세요.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  6. docs/zh/docs/tutorial/body-nested-models.md

    ## 带类型参数的 List 字段 { #list-fields-with-type-parameter }
    
    不过,Python 有一种用于声明具有内部类型(类型参数)的列表的特定方式:
    
    ### 声明带类型参数的 `list` { #declare-a-list-with-a-type-parameter }
    
    要声明具有类型参数(内部类型)的类型,例如 `list`、`dict`、`tuple`,使用方括号 `[` 和 `]` 传入内部类型作为「类型参数」:
    
    ```Python
    my_list: list[str]
    ```
    
    这完全是用于类型声明的标准 Python 语法。
    
    对具有内部类型的模型属性也使用相同的标准语法。
    
    因此,在我们的示例中,我们可以将 `tags` 明确地指定为一个「字符串列表」:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  7. scripts/translate.py

        ]
        first_parent = Path("docs/en/docs")
        yield from first_parent.glob("*.md")
        for dir_path in first_dirs:
            yield from dir_path.rglob("*.md")
        first_dirs_str = tuple(str(d) for d in first_dirs)
        for path in Path("docs/en/docs").rglob("*.md"):
            if str(path).startswith(first_dirs_str):
                continue
            if path.parent == first_parent:
                continue
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:37:41 GMT 2026
    - 15.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/Sets.java

       *
       * {@snippet :
       * for (B b0 : sets.get(0)) {
       *   for (B b1 : sets.get(1)) {
       *     ...
       *     ImmutableList<B> tuple = ImmutableList.of(b0, b1, ...);
       *     // operate on tuple
       *   }
       * }
       * }
       *
       * <p>Note that if any input set is empty, the Cartesian product will also be empty. If no sets at
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 81.4K bytes
    - Click Count (0)
  9. docs/uk/docs/tutorial/response-model.md

    Він еквівалентний `set(["name", "description"])`.
    
    ///
    
    #### Використання `list` замість `set` { #using-lists-instead-of-sets }
    
    Якщо ви забудете використати `set` і натомість застосуєте `list` або `tuple`, FastAPI все одно перетворить це на `set`, і все працюватиме правильно:
    
    {* ../../docs_src/response_model/tutorial006_py310.py hl[29,35] *}
    
    ## Підсумок { #recap }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 25.2K bytes
    - Click Count (0)
  10. docs/ru/docs/tutorial/response-model.md

    Это эквивалентно `set(["name", "description"])`.
    
    ///
    
    #### Использование `list` вместо `set` { #using-lists-instead-of-sets }
    
    Если вы забыли использовать `set` и применили `list` или `tuple` вместо него, FastAPI всё равно преобразует это в `set`, и всё будет работать корректно:
    
    {* ../../docs_src/response_model/tutorial006_py310.py hl[29,35] *}
    
    ## Резюме { #recap }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 25.5K bytes
    - Click Count (0)
Back to Top