Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1721 - 1730 of 7,602 for _class (0.04 sec)

  1. docs_src/response_model/tutorial005.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: float = 10.5
    
    
    items = {
        "foo": {"name": "Foo", "price": 50.2},
        "bar": {"name": "Bar", "description": "The Bar fighters", "price": 62, "tax": 20.2},
        "baz": {
            "name": "Baz",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 848 bytes
    - Viewed (0)
  2. docs_src/response_model/tutorial006.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: float = 10.5
    
    
    items = {
        "foo": {"name": "Foo", "price": 50.2},
        "bar": {"name": "Bar", "description": "The Bar fighters", "price": 62, "tax": 20.2},
        "baz": {
            "name": "Baz",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 848 bytes
    - Viewed (0)
  3. docs_src/security/tutorial002_an.py

    from fastapi.security import OAuth2PasswordBearer
    from pydantic import BaseModel
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
    
    
    class User(BaseModel):
        username: str
        email: Union[str, None] = None
        full_name: Union[str, None] = None
        disabled: Union[bool, None] = None
    
    
    def fake_decode_token(token):
        return User(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 815 bytes
    - Viewed (0)
  4. build-logic-commons/basics/build.gradle.kts

        api(platform(projects.buildPlatform))
    
        implementation("com.google.guava:guava") {
            because("Used by class analysis")
        }
        implementation("org.ow2.asm:asm") {
            because("Used by class analysis")
        }
        implementation("org.ow2.asm:asm-commons") {
            because("Used by class analysis")
        }
    
        implementation(kotlin("compiler-embeddable") as String) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Sep 17 10:11:26 UTC 2024
    - 893 bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

    import com.google.common.testing.EqualsTester;
    import java.util.Set;
    import org.junit.After;
    import org.junit.Test;
    
    /**
     * Abstract base class for testing undirected {@link Graph} implementations defined in this package.
     */
    public abstract class AbstractStandardUndirectedGraphTest extends AbstractGraphTest {
    
      @After
      public void validateUndirectedEdges() {
        for (Integer node : graph.nodes()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertThrows(InvalidCacheLoadException.class, () -> cache.get(new Object()));
        stats = cache.stats();
        assertEquals(1, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(1, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
        assertThrows(InvalidCacheLoadException.class, () -> cache.getUnchecked(new Object()));
        stats = cache.stats();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        assertEquals(20, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromIllegalSizes() {
        assertThrows(IllegalArgumentException.class, () -> ArrayListMultimap.create(15, -2));
    
        assertThrows(IllegalArgumentException.class, () -> ArrayListMultimap.create(-15, 2));
      }
    
      public void testCreateFromHashMultimap() {
        Multimap<String, Integer> original = HashMultimap.create();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/AbstractInvocationHandler.java

     * Object#hashCode} and {@link Object#toString}. For example:
     *
     * <pre>
     * class Unsupported extends AbstractInvocationHandler {
     *   protected Object handleInvocation(Object proxy, Method method, Object[] args) {
     *     throw new UnsupportedOperationException();
     *   }
     * }
     *
     * CharSequence unsupported = Reflection.newProxy(CharSequence.class, new Unsupported());
     * </pre>
     *
     * @author Ben Yu
     * @since 12.0
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/ListReplaceAllTester.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class ListReplaceAllTester<E> extends AbstractListTester<E> {
      @ListFeature.Require(SUPPORTS_SET)
      public void testReplaceAll() {
        getList().replaceAll(e -> samples.e3());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/QueueRemoveTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class QueueRemoveTester<E> extends AbstractQueueTester<E> {
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testRemove_empty() {
        assertThrows(NoSuchElementException.class, () -> getQueue().remove());
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top