- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 95 for 34 (0.12 sec)
-
docs/zh/docs/tutorial/body-updates.md
更新部分数据时,可以在 Pydantic 模型的 `.dict()` 中使用 `exclude_unset` 参数。 比如,`item.dict(exclude_unset=True)`。 这段代码生成的 `dict` 只包含创建 `item` 模型时显式设置的数据,而不包括默认值。 然后再用它生成一个只含已设置(在请求中所发送)数据,且省略了默认值的 `dict`: ```Python hl_lines="34" {!../../../docs_src/body_updates/tutorial002.py!} ``` ### 使用 Pydantic 的 `update` 参数 接下来,用 `.copy()` 为已有模型创建调用 `update` 参数的副本,该参数为包含更新数据的 `dict`。 例如,`stored_item_model.copy(update=update_data)`:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 3.6K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleExecutionPlanCalculatorStub.java
final Plugin plugin = mojoDescriptor.getPluginDescriptor().getPlugin(); plugin.setLocation("version", new InputLocation(12, 34, defaultBindings)); MojoExecution result = new MojoExecution(plugin, goal, executionId); result.setConfiguration(new XmlNodeImpl(executionId + "-" + goal)); result.setMojoDescriptor(mojoDescriptor);
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Tue Jan 09 20:57:17 GMT 2024 - 12.4K bytes - Viewed (0) -
docs/ja/docs/tutorial/body-updates.md
`item.dict(exclude_unset=True)`のように。 これにより、`item`モデルの作成時に設定されたデータのみを持つ`dict`が生成され、デフォルト値は除外されます。 これを使うことで、デフォルト値を省略して、設定された(リクエストで送られた)データのみを含む`dict`を生成することができます: ```Python hl_lines="34" {!../../../docs_src/body_updates/tutorial002.py!} ``` ### Pydanticの`update`パラメータ ここで、`.copy()`を用いて既存のモデルのコピーを作成し、`update`パラメータに更新するデータを含む`dict`を渡すことができます。 `stored_item_model.copy(update=update_data)`のように:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/FormBodyTest.kt
assertThat(formEncode(31)).isEqualTo("%1F") // Browsers use '+' for space. assertThat(formEncode(32)).isEqualTo("+") assertThat(formEncode(33)).isEqualTo("%21") assertThat(formEncode(34)).isEqualTo("%22") assertThat(formEncode(35)).isEqualTo("%23") assertThat(formEncode(36)).isEqualTo("%24") assertThat(formEncode(37)).isEqualTo("%25") assertThat(formEncode(38)).isEqualTo("%26")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 7.8K bytes - Viewed (0) -
android/guava/src/com/google/common/math/IntMath.java
Integer.MAX_VALUE, Integer.MAX_VALUE, 65536, 2345, 477, 193, 110, 75, 58, 49, 43, 39, 37, 35, 34, 34, 33 }; /** * Returns the arithmetic mean of {@code x} and {@code y}, rounded towards negative infinity. This * method is overflow resilient. * * @since 14.0 */
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 07 17:50:39 GMT 2024 - 23.5K bytes - Viewed (0) -
src/bytes/reader_test.go
wantpos int64 readerr error seekerr string }{ {seek: io.SeekStart, off: 0, n: 20, want: "0123456789"}, {seek: io.SeekStart, off: 1, n: 1, want: "1"}, {seek: io.SeekCurrent, off: 1, wantpos: 3, n: 2, want: "34"}, {seek: io.SeekStart, off: -1, seekerr: "bytes.Reader.Seek: negative position"}, {seek: io.SeekStart, off: 1 << 33, wantpos: 1 << 33, readerr: io.EOF}, {seek: io.SeekCurrent, off: 1, wantpos: 1<<33 + 1, readerr: io.EOF},
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Dec 13 18:45:54 GMT 2021 - 8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/Collections2Test.java
.size()); // Almost force an overflow in the binomial coefficient calculation assertEquals( 1391975640 /*C(34,14)*/, Collections2.orderedPermutations(concat(nCopies(20, 1), nCopies(14, 2))).size()); // Do force an overflow in the binomial coefficient calculation assertEquals( Integer.MAX_VALUE,
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 10:16:44 GMT 2024 - 19.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/Collections2Test.java
.size()); // Almost force an overflow in the binomial coefficient calculation assertEquals( 1391975640 /*C(34,14)*/, Collections2.orderedPermutations(concat(nCopies(20, 1), nCopies(14, 2))).size()); // Do force an overflow in the binomial coefficient calculation assertEquals( Integer.MAX_VALUE,
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 10:16:44 GMT 2024 - 19.7K bytes - Viewed (0) -
docs/bucket/notifications/README.md
``` You should receive the following event notification via RabbitMQ once the upload completes. ```py python rabbit.py
Plain Text - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 84K bytes - Viewed (2) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
assertThat(Adapters.parseUtcTime("920521000000Z")) .isEqualTo(date("1992-05-21T00:00:00.000+0000").time) assertThat(Adapters.parseUtcTime("920622123421Z")) .isEqualTo(date("1992-06-22T12:34:21.000+0000").time) assertThat(Adapters.parseUtcTime("920722132100Z")) .isEqualTo(date("1992-07-22T13:21:00.000+0000").time) } @Test fun `decode utc time two digit year cutoff is 1950`() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 31.7K bytes - Viewed (0)