Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1471 - 1480 of 7,384 for _class (0.07 sec)

  1. docs_src/dependencies/tutorial003_py310.py

    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}]
    
    
    class CommonQueryParams:
        def __init__(self, q: str | None = None, skip: int = 0, limit: int = 100):
            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons=Depends(CommonQueryParams)):
        response = {}
        if commons.q:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 603 bytes
    - Viewed (0)
  2. docs_src/path_operation_configuration/tutorial003_py39.py

    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: set[str] = set()
    
    
    @app.post(
        "/items/",
        response_model=Item,
        summary="Create an item",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 512 bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/FloatArrayAsListTest.java

      // public named classes with a public default constructor.
    
      public static final class FloatsAsListGenerator extends TestFloatListGenerator {
        @Override
        protected List<Float> create(Float[] elements) {
          return asList(elements);
        }
      }
    
      public static final class FloatsAsListHeadSubListGenerator extends TestFloatListGenerator {
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/FloatArrayAsListTest.java

      // public named classes with a public default constructor.
    
      public static final class FloatsAsListGenerator extends TestFloatListGenerator {
        @Override
        protected List<Float> create(Float[] elements) {
          return asList(elements);
        }
      }
    
      public static final class FloatsAsListHeadSubListGenerator extends TestFloatListGenerator {
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/IntArrayAsListTest.java

      // public named classes with a public default constructor.
    
      public static final class IntsAsListGenerator extends TestIntegerListGenerator {
        @Override
        protected List<Integer> create(Integer[] elements) {
          return asList(elements);
        }
      }
    
      public static final class IntsAsListHeadSubListGenerator extends TestIntegerListGenerator {
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.java

         * @throws CIFSException
         */
        @SuppressWarnings ( "unchecked" )
        public <T extends Decodable> T getInfo ( Class<T> clazz ) throws CIFSException {
            if ( !clazz.isAssignableFrom(this.info.getClass()) ) {
                throw new CIFSException("Incompatible file information class");
            }
            return (T) getInfo();
        }
    
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Nov 13 15:13:49 UTC 2021
    - 6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

     *
     * As bytes are returned from upstream they are written to a local file. Downstream sources read
     * from this file as necessary.
     *
     * This class also keeps a small buffer of bytes recently read from upstream. This is intended to
     * save a small amount of file I/O and data copying.
     */
    class Relay private constructor(
      /**
       * Read/write persistence of the upstream source and its metadata. Its layout is as follows:
       *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/Closer.java

       */
      public <X1 extends Exception, X2 extends Exception> RuntimeException rethrow(
          Throwable e, Class<X1> declaredType1, Class<X2> declaredType2) throws IOException, X1, X2 {
        checkNotNull(e);
        thrown = e;
        throwIfInstanceOf(e, IOException.class);
        throwIfInstanceOf(e, declaredType1);
        throwIfInstanceOf(e, declaredType2);
        throwIfUnchecked(e);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

      }
    
      public void testDecodeIntFails() {
        assertThrows(NumberFormatException.class, () -> UnsignedInts.decode("0xfffffffff"));
    
        assertThrows(NumberFormatException.class, () -> UnsignedInts.decode("-5"));
    
        assertThrows(NumberFormatException.class, () -> UnsignedInts.decode("-0x5"));
    
        assertThrows(NumberFormatException.class, () -> UnsignedInts.decode("-05"));
      }
    
      public void testToString() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/ConcurrentNavigableMapTestSuiteBuilder.java

            new ConcurrentNavigableMapTestSuiteBuilder<>();
        result.usingGenerator(generator);
        return result;
      }
    
      @SuppressWarnings("rawtypes") // class literals
      @Override
      protected List<Class<? extends AbstractTester>> getTesters() {
        List<Class<? extends AbstractTester>> testers = copyToList(super.getTesters());
        testers.addAll(ConcurrentMapTestSuiteBuilder.TESTERS);
        return testers;
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top