Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 321 - 330 of 5,278 for Class (0.02 seconds)

  1. docs/zh/docs/tutorial/request-forms.md

    # 表单数据
    
    接收的不是 JSON,而是表单字段时,要使用 `Form`。
    
    /// info | 说明
    
    要使用表单,需预先安装 <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>。
    
    例如,`pip install python-multipart`。
    
    ///
    
    ## 导入 `Form`
    
    从 `fastapi` 导入 `Form`:
    
    {* ../../docs_src/request_forms/tutorial001.py hl[1] *}
    
    ## 定义 `Form` 参数
    
    创建表单(`Form`)参数的方式与 `Body` 和 `Query` 一样:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 2.1K bytes
    - Click Count (0)
  2. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/BinaryCompatibilityHelper.groovy

    import me.champeau.gradle.japicmp.report.RichReport
    import org.gradle.api.Action
    import org.gradle.api.Project
    import org.gradle.api.file.Directory
    import org.gradle.api.file.FileCollection
    
    class BinaryCompatibilityHelper {
        static setupJApiCmpRichReportRules(
            JapicmpTask japicmpTask,
            Project project,
            Directory acceptedViolationsDir,
            FileCollection sourceRoots,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 10:14:25 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/io/ReflectionFreeAssertThrows.java

              .put(NullPointerException.class, e -> e instanceof NullPointerException)
              .put(NumberFormatException.class, e -> e instanceof NumberFormatException)
              .put(RuntimeException.class, e -> e instanceof RuntimeException)
              .put(TimeoutException.class, e -> e instanceof TimeoutException)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractListeningExecutorServiceTest.java

        assertTrue(runnableFuture2.isDone());
        assertTrue(runnable2.run);
        assertEquals((Integer) 3, runnableFuture2.get());
      }
    
      private static class TestRunnable implements Runnable {
        boolean run = false;
    
        @Override
        public void run() {
          run = true;
        }
      }
    
      private static class TestCallable implements Callable<String> {
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  5. impl/maven-core/src/test/java/org/apache/maven/DefaultMavenTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    class DefaultMavenTest extends AbstractCoreMavenComponentTestCase {
        @Singleton
        @Named("WsrClassCatcher")
        private static final class WsrClassCatcher extends AbstractMavenLifecycleParticipant {
            private final AtomicReference<Class<?>> wsrClassRef = new AtomicReference<>(null);
    
            @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/ClassToInstanceMap.java

        extends Map<Class<? extends @NonNull B>, B> {
      /**
       * Returns the value the specified class is mapped to, or {@code null} if no entry for this class
       * is present. This will only return a value that was bound to this specific class, not a value
       * that may have been bound to a subtype.
       */
      <T extends @NonNull B> @Nullable T getInstance(Class<T> type);
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.9K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      //                 suite.addTest((TestSuite) suiteOrClass);
      //             else if (suiteOrClass instanceof Class)
      //                 suite.addTest(new TestSuite((Class<?>) suiteOrClass));
      //             else
      //                 throw new ClassCastException("not a test suite or class");
      //         }
      //         return suite;
      //     }
    
      //     /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 37.8K bytes
    - Click Count (0)
  8. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    You might notice that to create an instance of a Python class, you use that same syntax.
    
    For example:
    
    ```Python
    class Cat:
        def __init__(self, name: str):
            self.name = name
    
    
    fluffy = Cat(name="Mr Fluffy")
    ```
    
    In this case, `fluffy` is an instance of the class `Cat`.
    
    And to create `fluffy`, you are "calling" `Cat`.
    
    So, a Python class is also a **callable**.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  9. impl/maven-core/src/test/java/org/apache/maven/MavenLifecycleParticipantTest.java

                    new ComponentDescriptor<>(InjectDependencyLifecycleListener.class, container.getContainerRealm());
            cd.setRoleClass(AbstractMavenLifecycleParticipant.class);
            container.addComponentDescriptor(cd);
    
            Maven maven = container.lookup(Maven.class);
            File pom = getProject("lifecycle-listener-dependency-injection");
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 6K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

      }
    
      public void testExecutors_nullCheck() throws Exception {
        new ClassSanityTester()
            .setDefault(RateLimiter.class, RateLimiter.create(1.0))
            .forAllPublicStaticMethods(MoreExecutors.class)
            .thatReturn(Executor.class)
            .testNulls();
      }
    
      private static class TestApplication extends Application {
        private final List<Thread> hooks = new ArrayList<>();
    
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 12 00:25:21 GMT 2025
    - 26.5K bytes
    - Click Count (0)
Back to Top