Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 441 - 450 of 1,846 for isInstance (0.09 seconds)

  1. docs/zh/docs/advanced/advanced-dependencies.md

    但我们希望能够把这个固定内容参数化。
    
    ## “可调用”的实例 { #a-callable-instance }
    
    在 Python 中,可以让某个类的实例变成“可调用对象”(callable)。
    
    这里指的是类的实例(类本身已经是可调用的),而不是类本身。
    
    为此,声明一个 `__call__` 方法:
    
    {* ../../docs_src/dependencies/tutorial011_an_py310.py hl[12] *}
    
    在这种情况下,**FastAPI** 会使用这个 `__call__` 来检查附加参数和子依赖,并且稍后会调用它,把返回值传递给你的*路径操作函数*中的参数。
    
    ## 参数化实例 { #parameterize-the-instance }
    
    现在,我们可以用 `__init__` 声明实例的参数,用来“参数化”这个依赖项:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/suggest/settings/SuggestSettingsBuilderTest.java

            assertEquals("250s", builder.timeoutSettings.clusterTimeout);
        }
    
        @Test
        public void testMethodChaining() {
            // Test that all methods return the builder instance for chaining
            String id = "chain-test";
            SuggestSettings settings = builder.setSettingsIndexName("CHAINED_INDEX")
                    .addInitialSettings("chain.key1", "chainValue1")
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserTimeZoneProcessProviderTest.java

            try {
                // Change default time zone temporarily
                TimeZone newTimeZone = TimeZone.getTimeZone("America/New_York");
                TimeZone.setDefault(newTimeZone);
    
                // Create new provider instance to pick up the new default
                FessUserTimeZoneProcessProvider newProvider = new FessUserTimeZoneProcessProvider();
    
                // Execute
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/curl/io/ContentCache.java

     * <ul>
     *   <li>In-memory caching using a byte array</li>
     *   <li>File-based caching using a File object</li>
     * </ul>
     *
     * <p>When an instance of ContentCache is created with a byte array, the content is cached in memory.
     * When an instance is created with a File object, the content is cached in the specified file.
     *
     * <p>The {@code close()} method deletes the file if the content is cached in a file.
     *
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  5. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Logger.java

                @Nonnull String message,
                @Nullable Throwable error) {}
    
        /**
         * If this is an accumulating log, it will "drain" this instance. It returns the accumulated log entries, and
         * also "resets" this instance to empty (initial) state.
         */
        @Nonnull
        default List<Entry> drain() {
            return List.of();
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 5K bytes
    - Click Count (0)
  6. docs/federation/lookup/README.md

    and `bucket2.domain.com`.
    
    #### MINIO_PUBLIC_IPS
    
    This is comma separated list of IP addresses to which buckets created on this MinIO instance will resolve to. For example,
    a bucket `bucket1` created on current MinIO instance will be accessible as `bucket1.domain.com`, and the DNS entry for
    `bucket1.domain.com` will point to IP address set in `MINIO_PUBLIC_IPS`.
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/testing/SerializableTester.java

       * {@code SerializableTester} calls with other, GWT-compatible tests.
       *
       * <p>Note that the specified object may not be known by the compiler to be a {@link
       * java.io.Serializable} instance, and is thus declared an {@code Object}. For example, it might
       * be declared as a {@code List}.
       *
       * @return the re-serialized object
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java

     *     derived classes can be chained onto them without casting.
     * @param <G> The type of the generator to be passed to testers in the generated test suite. An
     *     instance of G should somehow provide an instance of the class under test, plus any other
     *     information required to parameterize the test.
     * @see FeatureSpecificTestSuiteBuilder
     * @author George van den Driessche
     */
    @GwtIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  9. tests/test_router_circular_import.py

    import pytest
    from fastapi import APIRouter
    
    
    def test_router_circular_import():
        router = APIRouter()
    
        with pytest.raises(
            AssertionError,
            match="Cannot include the same APIRouter instance into itself. Did you mean to include a different router?",
        ):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 10 10:58:40 GMT 2026
    - 317 bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/pathmap/CreateBody.java

    /**
     * Request body for creating path mapping via REST API.
     * Extends CreateForm to inherit validation and field definitions.
     */
    public class CreateBody extends CreateForm {
    
        /**
         * Creates a new CreateBody instance.
         */
        public CreateBody() {
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 1004 bytes
    - Click Count (0)
Back to Top