Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 67 for pet_type (0.06 seconds)

  1. tests/test_union_body_discriminator_annotated.py

        from fastapi import Body
        from pydantic import Discriminator, Tag
    
        class Cat(BaseModel):
            pet_type: str = "cat"
            meows: int
    
        class Dog(BaseModel):
            pet_type: str = "dog"
            barks: float
    
        def get_pet_type(v):
            assert isinstance(v, dict)
            return v.get("pet_type", "")
    
        Pet = Annotated[
            Union[Annotated[Cat, Tag("cat")], Annotated[Dog, Tag("dog")]],
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

                    if (field.getType() == DependencyResolverResult.class) {
                        result = res;
                    } else if (field.getType() == Node.class) {
                        result = res.getRoot();
                    } else if (field.getType() == List.class && field.getGenericType() instanceof ParameterizedType pt) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 09 16:35:21 GMT 2025
    - 46.4K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertTrue(
            from.getType() + " is expected to be assignable to " + to.getType(),
            to.isSupertypeOf(from));
        assertTrue(
            to.getType() + " is expected to be a supertype of " + from.getType(),
            to.isSupertypeOf(from));
        assertTrue(
            from.getType() + " is expected to be a subtype of " + to.getType(), from.isSubtypeOf(to));
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 89K bytes
    - Click Count (0)
  4. impl/maven-core/src/test/java/org/apache/maven/internal/impl/TestApi.java

            Map<PathType, List<Path>> dispatched = session.resolveDependencies(
                    coords, PathScope.TEST_COMPILE, Arrays.asList(JavaPathType.CLASSES, JavaPathType.MODULES));
            List<Path> classes = dispatched.get(JavaPathType.CLASSES);
            List<Path> modules = dispatched.get(JavaPathType.MODULES);
            List<Path> unresolved = dispatched.get(PathType.UNRESOLVED);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverRequest.java

                    implements DependencyResolverRequest {
    
                static final class AlwaysTrueFilter implements Predicate<PathType> {
                    @Override
                    public boolean test(PathType pathType) {
                        return true;
                    }
    
                    @Override
                    public boolean equals(Object obj) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:30:49 GMT 2025
    - 23K bytes
    - Click Count (0)
  6. guava/src/com/google/common/net/MediaType.java

          createConstantUtf8(TEXT_TYPE, "cache-manifest");
      public static final MediaType CSS_UTF_8 = createConstantUtf8(TEXT_TYPE, "css");
      public static final MediaType CSV_UTF_8 = createConstantUtf8(TEXT_TYPE, "csv");
      public static final MediaType HTML_UTF_8 = createConstantUtf8(TEXT_TYPE, "html");
      public static final MediaType I_CALENDAR_UTF_8 = createConstantUtf8(TEXT_TYPE, "calendar");
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Oct 02 01:46:40 GMT 2025
    - 48K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/project/MavenProject.java

                    dependency.setGroupId(a.getGroupId());
                    dependency.setVersion(a.getVersion());
                    dependency.setScope(a.getScope());
                    dependency.setType(a.getType());
                    dependency.setClassifier(a.getClassifier());
    
                    list.add(dependency);
                }
            }
            return Collections.unmodifiableList(list);
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Aug 29 12:47:20 GMT 2025
    - 67K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/net/MediaType.java

          createConstantUtf8(TEXT_TYPE, "cache-manifest");
      public static final MediaType CSS_UTF_8 = createConstantUtf8(TEXT_TYPE, "css");
      public static final MediaType CSV_UTF_8 = createConstantUtf8(TEXT_TYPE, "csv");
      public static final MediaType HTML_UTF_8 = createConstantUtf8(TEXT_TYPE, "html");
      public static final MediaType I_CALENDAR_UTF_8 = createConstantUtf8(TEXT_TYPE, "calendar");
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Oct 02 01:46:40 GMT 2025
    - 48K bytes
    - Click Count (0)
  9. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/NullabilityBreakingChangesRule.groovy

                if ((typeReference.getSort() == TypeReference.CLASS_TYPE_PARAMETER || typeReference.getSort() == TypeReference.CLASS_TYPE_PARAMETER_BOUND) &&
                    NULLABLE_ANNOTATIONS.contains(Type.getType(descriptor).getClassName())) {
                    typeParametersNullability.set(typeReference.getTypeParameterIndex(), true)
                }
                return null
            }
        }
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Oct 27 09:26:32 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/toolchain/ToolchainManagerFactory.java

        }
    
        private record ToolchainWrapperV4(ToolchainPrivate delegate) implements org.apache.maven.api.Toolchain {
    
            @Override
            public String getType() {
                return delegate.getType();
            }
    
            @Override
            public String findTool(String toolName) {
                return delegate.findTool(toolName);
            }
    
            @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 31 10:58:52 GMT 2025
    - 11K bytes
    - Click Count (0)
Back to Top