- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 78 for xstr (0.06 sec)
-
cmd/kubeadm/app/util/version.go
} else if len(split) < 2 { pre = split[0] + ".0" // Append .0 to a partial label } pre = "-" + pre } } vStr := fmt.Sprintf("v%d.%d.%d%s", v.Major(), v.Minor(), patch, pre) return vStr, nil } // Validate if the remote version is one Minor release newer than the client version. // This is done to conform with "stable-X" and only allow remote versions from
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 10:50:19 UTC 2024 - 9.5K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-message.h
Message& operator <<(const ::std::wstring& wstr); #endif // GTEST_HAS_STD_WSTRING #if GTEST_HAS_GLOBAL_WSTRING // Converts the given wide string to a narrow string using the UTF-8 // encoding, and streams the result to this Message object. Message& operator <<(const ::wstring& wstr); #endif // GTEST_HAS_GLOBAL_WSTRING
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 9K bytes - Viewed (0) -
pkg/controller/job/indexed_job_utils.go
return parseInt32(logger, value) } return 0 } func parseInt32(logger klog.Logger, vStr string) int32 { if vInt, err := strconv.Atoi(vStr); err != nil { logger.Error(err, "Failed to parse the value", "value", vStr) return 0 } else if vInt < 0 || vInt > math.MaxInt32 { logger.Info("The value is invalid", "value", vInt) return 0 } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 21 00:44:53 UTC 2023 - 17.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/query-params-str-validations.md
``` 由于我们必须用 `Query(default=None)` 替换默认值 `None`,`Query` 的第一个参数同样也是用于定义默认值。 所以: ```Python q: Union[str, None] = Query(default=None) ``` ...使得参数可选,等同于: ```Python q: str = None ``` 但是 `Query` 显式地将其声明为查询参数。 然后,我们可以将更多的参数传递给 `Query`。在本例中,适用于字符串的 `max_length` 参数: ```Python q: Union[str, None] = Query(default=None, max_length=50) ``` 将会校验数据,在数据无效时展示清晰的错误信息,并在 OpenAPI 模式的*路径操作*中记录该参数。
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Mar 22 01:42:11 UTC 2024 - 9.2K bytes - Viewed (0) -
docs/ko/docs/tutorial/query-params-str-validations.md
```Python hl_lines="9" {!../../../docs_src/query_params_str_validations/tutorial001.py!} ``` 쿼리 매개변수 `q`는 `Optional[str]` 자료형입니다. 즉, `str` 자료형이지만 `None` 역시 될 수 있음을 뜻하고, 실제로 기본값은 `None`이기 때문에 FastAPI는 이 매개변수가 필수가 아니라는 것을 압니다. !!! note "참고" FastAPI는 `q`의 기본값이 `= None`이기 때문에 필수가 아님을 압니다. `Optional[str]`에 있는 `Optional`은 FastAPI가 사용하는게 아니지만, 편집기에게 더 나은 지원과 오류 탐지를 제공하게 해줍니다. ## 추가 검증
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sun Feb 11 13:48:31 UTC 2024 - 9.6K bytes - Viewed (0) -
docs/fr/docs/tutorial/query-params-str-validations.md
``` Le paramètre de requête `q` a pour type `Union[str, None]` (ou `str | None` en Python 3.10), signifiant qu'il est de type `str` mais pourrait aussi être égal à `None`, et bien sûr, la valeur par défaut est `None`, donc **FastAPI** saura qu'il n'est pas requis. !!! note **FastAPI** saura que la valeur de `q` n'est pas requise grâce à la valeur par défaut `= None`.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Jul 27 18:53:21 UTC 2023 - 9.8K bytes - Viewed (0) -
docs/ja/docs/tutorial/query-params-str-validations.md
以下のアプリケーションを例にしてみましょう: ```Python hl_lines="9" {!../../../docs_src/query_params_str_validations/tutorial001.py!} ``` クエリパラメータ `q` は `Optional[str]` 型で、`None` を許容する `str` 型を意味しており、デフォルトは `None` です。そのため、FastAPIはそれが必須ではないと理解します。 !!! note "備考" FastAPIは、 `q` はデフォルト値が `=None` であるため、必須ではないと理解します。 `Optional[str]` における `Optional` はFastAPIには利用されませんが、エディターによるより良いサポートとエラー検出を可能にします。 ## バリデーションの追加 `q`はオプショナルですが、もし値が渡されてきた場合には、**50文字を超えないこと**を強制してみましょう。
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 10.5K bytes - Viewed (0) -
testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-message.h
Message& operator <<(const ::std::wstring& wstr); #endif // GTEST_HAS_STD_WSTRING #if GTEST_HAS_GLOBAL_WSTRING // Converts the given wide string to a narrow string using the UTF-8 // encoding, and streams the result to this Message object. Message& operator <<(const ::wstring& wstr); #endif // GTEST_HAS_GLOBAL_WSTRING
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 9K bytes - Viewed (0) -
src/runtime/vlop_arm_test.go
// ldr r0, [sp, #8] // bl 6f690 <_sfloat> // ldr fp, [pc, #32] ; (address of 128.0) // vldr d0, [fp] // ldr fp, [pc, #28] ; (1024) // add fp, fp, r0 // vstr d0, [fp] // The software floating-point emulator gives up on the add. // This causes the store to not work. // See issue 15440. a[128] = 128.0 } func TestArmFloatBigOffsetWrite(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 01 21:52:00 UTC 2018 - 3.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/compile_mlir_util/mlir-module-serialized-str-attr.mlir
// RUN: tf-mlir-translate -mlir-tf-mlir-to-str-attr -mlir-print-local-scope %s | FileCheck %s module attributes {tf.versions = {producer = 888 : i32}} { func.func @main(%arg0: tensor<?xi32>) -> tensor<?xi32> { %0 = "tf.Identity"(%arg0) : (tensor<?xi32>) -> tensor<?xi32> loc(unknown) func.return %0 : tensor<?xi32> loc(unknown) } loc(unknown) } loc(unknown)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 24 06:42:46 UTC 2023 - 672 bytes - Viewed (0)