Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 19 for pet_type (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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. api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java

        @Override
        public String toString() {
            return "PathType[" + id() + ']';
        }
    
        /**
         * Type of path which is applied to only one specific Java module.
         * The main case is the Java {@code --patch-module} option.
         *
         * @see #PATCH_MODULE
         * @see #patchModule(String)
         */
        public final class Modular implements PathType {
            /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Dec 15 11:13:42 GMT 2025
    - 15.7K bytes
    - Click Count (1)
  3. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/BinaryBreakingChangesRule.java

                        return null;
                    }
                }
                for (JApiCompatibilityChange change : member.getCompatibilityChanges()) {
                    if (IGNORED_CHANGE_TYPES.contains(change.getType())) {
                        return null;
                    }
                }
                if (member instanceof JApiHasAnnotations) {
                    if (isIncubating((JApiHasAnnotations) member)) {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 24 14:15:15 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

                    + dependency.getType().id() + ":" + dependency.getClassifier();
        }
    
        private static String getDependencyKey(Dependency dependency) {
            return dependency.getGroupId() + ":" + dependency.getArtifactId() + ":"
                    + (dependency.getType() != null ? dependency.getType() : "jar") + ":"
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Nov 27 07:40:26 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/helper/SambaHelper.java

        }
    
        /**
         * Gets the account ID from a SID.
         * @param sid The SID.
         * @return The account ID.
         */
        public String getAccountId(final SID sid) {
            final int type = sid.getType();
            if (logger.isDebugEnabled()) {
                try {
                    logger.debug("Processing SID: {} {} {}", type, sid, sid.toDisplayString());
                } catch (final Exception e) {
                    // ignore
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/reflect/SubtypeTester.java

      private static Type getSupertype(Type type, Class<?> superclass) {
        Class rawType = superclass;
        return TypeToken.of(type).getSupertype(rawType).getType();
      }
    
      private static Type getSubtype(Type type, Class<?> subclass) {
        return TypeToken.of(type).getSubtype(subclass).getType();
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Nov 25 23:29:58 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  7. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperties.java

            }
            try (FileReader reader = new FileReader(file)) {
                List<UpgradedProperty> upgradedProperties = new Gson().fromJson(reader, new TypeToken<List<UpgradedProperty>>() {}.getType());
                // FIXME There should be no duplicates, yet there are some
                return upgradedProperties.stream()
                    .distinct()
                    .collect(ImmutableList.toImmutableList());
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 24 14:15:15 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

            }
    
            @Override
            public Locale getLocale() {
                return Locale.ROOT;
            }
    
            @Override
            public SearchRequestType getType() {
                return SearchRequestType.JSON;
            }
    
            @Override
            public String getSimilarDocHash() {
                return request.getParameter("sdh");
            }
    
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 55.4K bytes
    - Click Count (1)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

            sb.append('-').append(artifact.getBaseVersion());
            if (artifact.getClassifier() != null) {
                sb.append('-').append(artifact.getClassifier());
            }
            sb.append('.').append(artifact.getType()).append(LAST_UPDATE_TAG);
            return new File(artifact.getFile().getParentFile(), sb.toString());
        }
    
        File getTouchfile(RepositoryMetadata metadata, File file) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java

        }
    
        /**
         * Returns the type identifier for this dictionary file.
         *
         * @return the string "mapping" identifying this as a character mapping file
         */
        @Override
        public String getType() {
            return MAPPING;
        }
    
        /**
         * Returns the file path of this character mapping dictionary.
         *
         * @return the file path as a string
         */
        @Override
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sat Dec 20 05:56:45 GMT 2025
    - 15.3K bytes
    - Click Count (0)
Back to Top