- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 42 for model_name (1.41 sec)
-
docs/fr/docs/tutorial/path-params.md
#### Comparer les *membres d'énumération* Vous pouvez comparer ce paramètre avec les membres de votre énumération `ModelName` : {* ../../docs_src/path_params/tutorial005.py hl[17] *} #### Récupérer la *valeur de l'énumération* Vous pouvez obtenir la valeur réel d'un membre (une chaîne de caractères ici), avec `model_name.value`, ou en général, `votre_membre_d'enum.value` : {* ../../docs_src/path_params/tutorial005.py hl[20] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Nov 09 16:39:20 UTC 2024 - 9.8K bytes - Viewed (0) -
docs/ru/docs/tutorial/path-params.md
Вы можете сравнить это значение с *элементом перечисления* класса `ModelName`: {* ../../docs_src/path_params/tutorial005_py39.py hl[17] *} #### Получение *значения перечисления* { #get-the-enumeration-value } Можно получить фактическое значение (в данном случае - `str`) с помощью `model_name.value` или в общем случае `your_enum_member.value`:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 14.2K bytes - Viewed (0) -
docs/zh/docs/tutorial/path-params.md
#### 获取*枚举值* 使用 `model_name.value` 或 `your_enum_member.value` 获取实际的值(本例中为**字符串**): {* ../../docs_src/path_params/tutorial005.py hl[20] *} /// tip | 提示 使用 `ModelName.lenet.value` 也能获取值 `"lenet"`。 /// #### 返回*枚举元素* 即使嵌套在 JSON 请求体里(例如, `dict`),也可以从*路径操作*返回*枚举元素*。 返回给客户端之前,要把枚举元素转换为对应的值(本例中为字符串): {* ../../docs_src/path_params/tutorial005.py hl[18,21,23] *} 客户端中的 JSON 响应如下:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Dec 15 16:43:19 UTC 2024 - 7.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/path-params.md
Você pode compará-lo com o *membro de enumeração* no seu enum `ModelName` criado: {* ../../docs_src/path_params/tutorial005_py39.py hl[17] *} #### Obtenha o valor da enumeração { #get-the-enumeration-value } Você pode obter o valor real (um `str` neste caso) usando `model_name.value`, ou, em geral, `your_enum_member.value`: {* ../../docs_src/path_params/tutorial005_py39.py hl[20] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 9.8K bytes - Viewed (0) -
docs/ja/docs/tutorial/path-params.md
#### *列挙値*の取得 `model_name.value` 、もしくは一般に、 `your_enum_member.value` を使用して実際の値 (この場合は `str`) を取得できます。 {* ../../docs_src/path_params/tutorial005.py hl[20] *} /// tip | 豆知識 `ModelName.lenet.value` でも `"lenet"` 値にアクセスできます。 /// #### *列挙型メンバ*の返却 *path operation* から*列挙型メンバ*を返すことができます。JSONボディ(`dict` など)でネストすることもできます。 それらはクライアントに返される前に適切な値 (この場合は文字列) に変換されます。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 10.4K bytes - Viewed (0) -
fastapi/dependencies/utils.py
return None first_param = flat_dependant.body_params[0] if not embed_body_fields: return first_param model_name = "Body_" + name BodyModel = create_body_model( fields=flat_dependant.body_params, model_name=model_name ) required = any(True for f in flat_dependant.body_params if f.required) BodyFieldInfo_kwargs: dict[str, Any] = { "annotation": BodyModel,Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 37.6K bytes - Viewed (3) -
cmd/update.go
coreMap[cpus[i].CoreID] = struct{}{} } cpu := cpus[0] uaAppend(" CPU ", fmt.Sprintf("(total_cpus:%d, total_cores:%d; vendor:%s; family:%s; model:%s; stepping:%d; model_name:%s)", len(cpuMap), len(coreMap), cpu.VendorID, cpu.Family, cpu.Model, cpu.Stepping, cpu.ModelName)) } uaAppend(")", "") return strings.Join(userAgentParts, "") }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 18.9K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.35.md
- Generated OpenAPI model packages for API types into `zz_generated.model_name.go` files, accessible via the `OpenAPIModelName()` function. This allows API authors to declare desired OpenAPI model packages instead of relying on the Go package path of API types. ([#131755](https://github.com/kubernetes/kubernetes/pull/131755),...
Registered: Fri Dec 26 09:05:12 UTC 2025 - Last Modified: Wed Dec 17 13:01:55 UTC 2025 - 228.5K bytes - Viewed (0) -
tests/test_tutorial/test_settings/test_app01.py
main_mod = importlib.import_module(mod_name) return TestClient(main_mod.app) def test_settings_validation_error(mod_name: str, monkeypatch: MonkeyPatch): monkeypatch.delenv("ADMIN_EMAIL", raising=False) if mod_name in sys.modules: del sys.modules[mod_name] # pragma: no cover with pytest.raises(ValidationError) as exc_info: importlib.import_module(mod_name) assert exc_info.value.errors() == [
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 2.2K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jul 23 17:27:08 UTC 2025 - 13.4K bytes - Viewed (0)