- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 101 for tuple (0.02 seconds)
-
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) -
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) -
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) -
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: continueCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:37:41 GMT 2026 - 15.8K bytes - Click Count (0) -
api/go1.24.txt
pkg go/types, method (*Named) Methods() iter.Seq[*Func] #66626 pkg go/types, method (*Scope) Children() iter.Seq[*Scope] #66626 pkg go/types, method (*Struct) Fields() iter.Seq[*Var] #66626 pkg go/types, method (*Tuple) Variables() iter.Seq[*Var] #66626 pkg go/types, method (*TypeList) Types() iter.Seq[Type] #66626 pkg go/types, method (*TypeParamList) TypeParams() iter.Seq[*TypeParam] #66626
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Dec 17 21:28:29 GMT 2024 - 14.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Sets.java
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) -
docs/ja/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の構文はこれだけです。 内部の型を持つモデルの属性にも同じ標準の構文を使用してください。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 8.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/Sets.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 83K bytes - Click Count (0) -
docs/en/docs/tutorial/response-model.md
It is equivalent to `set(["name", "description"])`. /// #### Using `list`s instead of `set`s { #using-lists-instead-of-sets } If you forget to use a `set` and use a `list` or `tuple` instead, FastAPI will still convert it to a `set` and it will work correctly: {* ../../docs_src/response_model/tutorial006_py310.py hl[29,35] *} ## Recap { #recap }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 15.5K bytes - Click Count (0) -
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)