Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2321 - 2330 of 3,687 for inst (0.02 sec)

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

    ---
    
    其他有用的场景是当你想要接收其他类型的键时,例如 `int`。
    
    这也是我们在接下来将看到的。
    
    在下面的例子中,你将接受任意键为 `int` 类型并且值为 `float` 类型的 `dict`:
    
    {* ../../docs_src/body_nested_models/tutorial009_py39.py hl[7] *}
    
    /// tip
    
    请记住 JSON 仅支持将 `str` 作为键。
    
    但是 Pydantic 具有自动转换数据的功能。
    
    这意味着,即使你的 API 客户端只能将字符串作为键发送,只要这些字符串内容仅包含整数,Pydantic 就会对其进行转换并校验。
    
    然后你接收的名为 `weights` 的 `dict` 实际上将具有 `int` 类型的键和 `float` 类型的值。
    
    ///
    
    ## 总结
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. docs_src/schema_extra_example/tutorial003_py39.py

    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        item_id: int,
        item: Item = Body(
            examples=[
                {
                    "name": "Foo",
                    "description": "A very nice Item",
                    "price": 35.4,
                    "tax": 3.2,
                }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 612 bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/CacheBuilder.java

    @GwtCompatible
    public final class CacheBuilder<K, V> {
      private static final int DEFAULT_INITIAL_CAPACITY = 16;
      private static final int DEFAULT_CONCURRENCY_LEVEL = 4;
    
      @SuppressWarnings("GoodTime") // should be a Duration
      private static final int DEFAULT_EXPIRATION_NANOS = 0;
    
      @SuppressWarnings("GoodTime") // should be a Duration
      private static final int DEFAULT_REFRESH_NANOS = 0;
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 08 18:55:33 UTC 2025
    - 51.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class SetHashCodeTester<E> extends AbstractSetTester<E> {
      public void testHashCode() {
        int expectedHashCode = 0;
        for (E element : getSampleElements()) {
          expectedHashCode += (element == null) ? 0 : element.hashCode();
        }
        assertEquals(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  5. compat/maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java

     *
     * @deprecated since 4.0.0, use {@link org.apache.maven.api.services} instead
     */
    @Deprecated(since = "4.0.0")
    public class FileSource implements Source {
        private final Path path;
    
        private final int hashCode;
    
        /**
         * Creates a new source backed by the specified file.
         *
         * @param file The file, must not be {@code null}.
         * @deprecated Use {@link #FileSource(Path)} instead.
         */
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jan 15 18:51:29 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. okhttp-dnsoverhttps/api/okhttp-dnsoverhttps.api

    	public final fun resolvePrivateAddresses ()Z
    	public final fun resolvePublicAddresses ()Z
    	public final fun url ()Lokhttp3/HttpUrl;
    }
    
    public final class okhttp3/dnsoverhttps/DnsOverHttps$Builder {
    	public fun <init> ()V
    	public final fun bootstrapDnsHosts (Ljava/util/List;)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
    	public final fun bootstrapDnsHosts ([Ljava/net/InetAddress;)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 27 15:23:43 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/NtlmUtil.java

        }
    
        static byte[] computeResponse(final byte[] responseKey, final byte[] serverChallenge, final byte[] clientData, final int offset,
                final int length) {
            final MessageDigest hmac = Crypto.getHMACT64(responseKey);
            hmac.update(serverChallenge);
            hmac.update(clientData, offset, length);
            final byte[] mac = hmac.digest();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/SourceSinkFactories.java

          }
    
          @Override
          public byte[] getExpected(byte[] bytes) {
            byte[] baseExpected = factory.getExpected(bytes);
            int startOffset = (int) min(off, baseExpected.length);
            int actualLen = (int) min(len, baseExpected.length - startOffset);
            return Arrays.copyOfRange(baseExpected, startOffset, startOffset + actualLen);
          }
    
          @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/TemporaryFileInputStreamTest.java

                assertEquals(1024, stream.available());
    
                byte[] readBuffer = new byte[1024];
                int bytesRead = stream.read(readBuffer);
    
                assertEquals(1024, bytesRead);
                for (int i = 0; i < data.length; i++) {
                    assertEquals("Mismatch at position " + i, data[i], readBuffer[i]);
                }
            }
        }
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/http/Handler.java

        public Handler(final CIFSContext tc) {
            this.transportContext = tc;
        }
    
        /**
         * Returns the default HTTP port.
         *
         * @return An <code>int</code> containing the default HTTP port.
         */
        @Override
        protected int getDefaultPort() {
            return DEFAULT_HTTP_PORT;
        }
    
        @Override
        protected URLConnection openConnection(URL url) throws IOException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.9K bytes
    - Viewed (0)
Back to top