Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2121 - 2130 of 3,625 for List (0.02 seconds)

  1. docs/zh-hant/docs/tutorial/extra-models.md

    ```Python
    some_variable: PlaneItem | CarItem
    ```
    
    但若寫成指定值 `response_model=PlaneItem | CarItem` 會發生錯誤,因為 Python 會嘗試在 `PlaneItem` 與 `CarItem` 之間執行「無效運算」,而非將其視為型別註記。
    
    ## 模型的清單 { #list-of-models }
    
    同樣地,你可以將回應宣告為物件的 `list`。
    
    為此,使用標準的 Python `list`:
    
    {* ../../docs_src/extra_models/tutorial004_py310.py hl[18] *}
    
    ## 以任意 `dict` 作為回應 { #response-with-arbitrary-dict }
    
    你也可以用一般的任意 `dict` 宣告回應,只需指定鍵和值的型別,而不必使用 Pydantic 模型。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/io/CharStreams.java

       *
       * @param r the object to read from
       * @return a mutable {@link List} containing all the lines
       * @throws IOException if an I/O error occurs
       */
      public static List<String> readLines(Readable r) throws IOException {
        List<String> result = new ArrayList<>();
        LineReader lineReader = new LineReader(r);
        String line;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 29 13:56:24 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  3. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeInteropTest.kt

          story === Story.MISSING,
          "Test stories missing, checkout git submodule",
        )
        testDecoder(story)
      }
    
      internal class StoriesTestProvider : SimpleProvider() {
        override fun arguments(): List<Any> = createStories(HpackJsonUtil.storiesForCurrentDraft())
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/proxy/NullProxySelector.kt

    import java.net.SocketAddress
    import java.net.URI
    
    /**
     * A proxy selector that always returns the [Proxy.NO_PROXY].
     */
    object NullProxySelector : ProxySelector() {
      override fun select(uri: URI?): List<Proxy> {
        requireNotNull(uri) { "uri must not be null" }
        return listOf(Proxy.NO_PROXY)
      }
    
      override fun connectFailed(
        uri: URI?,
        sa: SocketAddress?,
        ioe: IOException?,
      ) {
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 1.1K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.cling.invoker.mvnenc.goals;
    
    import java.util.List;
    import java.util.Map;
    import java.util.Objects;
    
    import org.apache.maven.api.di.Inject;
    import org.apache.maven.api.di.Named;
    import org.apache.maven.api.di.Singleton;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 12K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/math/BigIntegerMath.java

        // Efficiently multiply all the intermediate products together.
        return listProduct(bignums).shiftLeft(shift);
      }
    
      static BigInteger listProduct(List<BigInteger> nums) {
        return listProduct(nums, 0, nums.size());
      }
    
      static BigInteger listProduct(List<BigInteger> nums, int start, int end) {
        switch (end - start) {
          case 0:
            return BigInteger.ONE;
          case 1:
            return nums.get(start);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  7. helm/minio/README.md

    - `policies[].name` - name of the policy to create, must be a string with length > 0
    - `policies[].statements[]` - list of statements, includes actions and resources
    - `policies[].statements[].resources[]` - list of resources that applies the statement
    - `policies[].statements[].actions[]` - list of actions granted
    
    ### Create user after install
    
    Install the chart, specifying the users you want to create after install:
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  8. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java

    import java.io.File;
    import java.text.SimpleDateFormat;
    import java.util.Calendar;
    import java.util.Collections;
    import java.util.Date;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map;
    import java.util.Properties;
    import java.util.TimeZone;
    
    import org.apache.maven.model.Dependency;
    import org.apache.maven.model.Model;
    import org.apache.maven.model.Resource;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Mar 30 23:08:36 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

      }
    
      /** Returns the head of the listener stack, using a volatile read. */
      final @Nullable Listener listeners() {
        return listenersField;
      }
    
      /** Releases all threads in the {@link #waitersField} list, and clears the list. */
      final void releaseWaiters() {
        Waiter head = gasWaiters(Waiter.TOMBSTONE);
        for (Waiter currentWaiter = head; currentWaiter != null; currentWaiter = currentWaiter.next) {
          currentWaiter.unpark();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 33.2K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/util/InputStreamThreadTest.java

    package org.codelibs.fess.util;
    
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.nio.charset.StandardCharsets;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.TimeUnit;
    import java.util.function.Consumer;
    
    import org.codelibs.fess.unit.UnitFessTestCase;
    import org.junit.jupiter.api.Test;
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 12K bytes
    - Click Count (0)
Back to Top