Search Options

Results per page
Sort
Preferred Languages
Advance

Results 671 - 680 of 6,186 for classe (0.05 sec)

  1. tests/test_invalid_path_param.py

        with pytest.raises(AssertionError):
            app = FastAPI()
    
            class Item(BaseModel):
                title: str
    
            @app.get("/items/{id}")
            def read_items(id: List[Item]):
                pass  # pragma: no cover
    
    
    def test_invalid_tuple():
        with pytest.raises(AssertionError):
            app = FastAPI()
    
            class Item(BaseModel):
                title: str
    
            @app.get("/items/{id}")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jun 03 17:59:40 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/io/ResourceUtilTest.java

         */
        public void testGetResourceAsStreamNoException() throws Exception {
            assertNotNull(ResourceUtil.getResourceAsStreamNoException("java/lang/String.class", "class"));
            assertNull(ResourceUtil.getResourceAsStreamNoException("java/lang/String2.class", "class"));
        }
    
        /**
         * @throws Exception
         */
        public void testGetBuildDir() throws Exception {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsBuilder.java

                        .session((Session) java.lang.reflect.Proxy.newProxyInstance(
                                Session.class.getClassLoader(),
                                new Class[] {Session.class},
                                (Object proxy, Method method, Object[] args) -> {
                                    if ("getSystemProperties".equals(method.getName())) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. docs/zh/docs/deployment/manually.md

    **FastAPI** 基于 <a href="https://anyio.readthedocs.io/en/stable/" class="external-link" target="_blank">AnyIO</a>, 所以它们才能同时与 Python 的标准库 <a href="https://docs.python.org/3/library/asyncio-task.html" class="external-link" target="_blank">asyncio</a> 和<a href="https://trio.readthedocs.io/en/stable/" class="external-link" target="_blank">Trio</a> 兼容。
    
    尽管如此,Uvicorn 目前仅与 asyncio 兼容,并且通常使用 <a href="https://github.com/MagicStack/uvloop" class="external-link" target="_blank">`uvloop`</a >, 它是`asyncio`的高性能替代品。...
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. interfaces.go

    import (
    	"context"
    	"database/sql"
    
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/schema"
    )
    
    // Dialector GORM database dialector
    type Dialector interface {
    	Name() string
    	Initialize(*DB) error
    	Migrator(db *DB) Migrator
    	DataTypeOf(*schema.Field) string
    	DefaultValueOf(*schema.Field) clause.Expression
    	BindVarTo(writer clause.Writer, stmt *Statement, v interface{})
    	QuoteTo(clause.Writer, string)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Aug 19 13:33:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/ProtoSession.java

            Injector injector = Injector.create();
            injector.bindInstance(Injector.class, injector);
            injector.bindInstance(Context.class, new Context(userProperties, systemProperties));
            injector.bindImplicit(Providers.class);
            injector.discover(ProtoSession.class.getClassLoader());
            Session session = injector.getInstance(Session.class);
            SessionScope scope = new SessionScope();
            scope.enter();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

        assertThrows(IllegalStateException.class, () -> emptyAccumulator.sampleCovariance());
        assertThrows(
            IllegalStateException.class,
            () -> emptyAccumulatorByAddAllEmptyPairedStats.sampleCovariance());
        assertThrows(IllegalStateException.class, () -> oneValueAccumulator.sampleCovariance());
        assertThrows(
            IllegalStateException.class,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/role/AdminRoleAction.java

    import jakarta.annotation.Resource;
    
    /**
     * @author shinsuke
     * @author Keiichi Watanabe
     */
    public class AdminRoleAction extends FessAdminAction {
    
        public static final String ROLE = "admin-role";
    
        private static final Logger logger = LogManager.getLogger(AdminRoleAction.class);
    
        // ===================================================================================
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/CompactHashing.java

    import java.util.Arrays;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Helper classes and static methods for implementing compact hash-based collections.
     *
     * @author Jon Noack
     */
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    final class CompactHashing {
      private CompactHashing() {}
    
      /** Indicates blank table entries. */
      static final byte UNSET = 0;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 15:34:52 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/testing.md

    Thanks to <a href="https://www.starlette.io/testclient/" class="external-link" target="_blank">Starlette</a>, testing **FastAPI** applications is easy and enjoyable.
    
    It is based on <a href="https://www.python-httpx.org" class="external-link" target="_blank">HTTPX</a>, which in turn is designed based on Requests, so it's very familiar and intuitive.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top