Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2991 - 3000 of 7,967 for aclass (0.04 sec)

  1. docs_src/schema_extra_example/tutorial001_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
        model_config = {
            "json_schema_extra": {
                "examples": [
                    {
                        "name": "Foo",
                        "description": "A very nice Item",
                        "price": 35.4,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 646 bytes
    - Viewed (0)
  2. docs_src/separate_openapi_schemas/tutorial001.py

    from typing import List, Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
    
    
    app = FastAPI()
    
    
    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> List[Item]:
        return [
            Item(
                name="Portal Gun",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 489 bytes
    - Viewed (0)
  3. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/BootstrapDns.kt

     *
     * Returns hardcoded results for the known host.
     */
    internal class BootstrapDns(
      private val dnsHostname: String,
      private val dnsServers: List<InetAddress>,
    ) : Dns {
      @Throws(UnknownHostException::class)
      override fun lookup(hostname: String): List<InetAddress> {
        if (this.dnsHostname != hostname) {
          throw UnknownHostException(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. docs/tr/docs/advanced/wsgi.md

    Geri kalanı ise **FastAPI** tarafından işlenecektir.
    
    Eğer uygulamanızı çalıştırıp <a href="http://localhost:8000/v1/" class="external-link" target="_blank">http://localhost:8000/v1/</a> adresine giderseniz, Flask'tan gelen yanıtı göreceksiniz:
    
    ```txt
    Hello, World from Flask!
    ```
    
    Eğer <a href="http://localhost:8000/v2/" class="external-link" target="_blank">http://localhost:8000/v2/</a> adresine giderseniz, FastAPI'dan gelen yanıtı göreceksiniz:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/log/JclLoggerAdapterFactory.java

    import org.apache.commons.logging.LogFactory;
    
    /**
     * (Jakarta) Commons Loggingのロガーを利用するアダプタを生成するファクトリです。
     *
     * @author koichik
     */
    class JclLoggerAdapterFactory implements LoggerAdapterFactory {
    
        @Override
        public LoggerAdapter getLoggerAdapter(final Class<?> clazz) {
            return new JclLoggerAdapter(clazz);
        }
    
        @Override
        public void releaseAll() {
            LogFactory.releaseAll();
        }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/config/bsentity/BsAccessToken.java

        private static final long serialVersionUID = 1L;
        protected static final Class<?> suppressUnusedImportLocalDateTime = LocalDateTime.class;
    
        // ===================================================================================
        //                                                                           Attribute
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        exec.execute(task);
        runLatch.await();
        taskLatch.countDown();
    
        ExecutionException e = assertThrows(ExecutionException.class, () -> task.get(5, SECONDS));
        assertEquals(IllegalStateException.class, e.getCause().getClass());
    
        assertTrue(listenerLatch.await(5, SECONDS));
        assertTrue(task.isDone());
        assertFalse(task.isCancelled());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Charsets.java

      public static final Charset UTF_16 = StandardCharsets.UTF_16;
    
      /*
       * Please do not add new Charset references to this class, unless those character encodings are
       * part of the set required to be supported by all Java platform implementations! Any Charsets
       * initialized here may cause unexpected delays when this class is loaded. See the Charset
       * Javadocs for the list of built-in character encodings.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 25 23:55:36 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit tests for {@link Callables}.
     *
     * @author Isaac Shum
     */
    @GwtCompatible(emulated = true)
    public class CallablesTest extends TestCase {
    
      @J2ktIncompatible // TODO(b/324550390): Enable
      public void testReturning() throws Exception {
        assertNull(Callables.returning(null).call());
    
        Object value = new Object();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/hash/MessageDigestHashFunction.java

    import java.util.Arrays;
    
    /**
     * {@link HashFunction} adapter for {@link MessageDigest} instances.
     *
     * @author Kevin Bourrillion
     * @author Dimitris Andreou
     */
    @Immutable
    @ElementTypesAreNonnullByDefault
    final class MessageDigestHashFunction extends AbstractHashFunction implements Serializable {
    
      @SuppressWarnings("Immutable") // cloned before each use
      private final MessageDigest prototype;
    
      private final int bytes;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 25 20:32:46 UTC 2022
    - 5K bytes
    - Viewed (0)
Back to top