Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for pet_type (0.04 sec)

  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")]],
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 7.7K bytes
    - Viewed (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) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 09 16:35:21 UTC 2025
    - 46.4K bytes
    - Viewed (0)
  3. 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 {
            /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Dec 15 11:13:42 UTC 2025
    - 15.7K bytes
    - Viewed (1)
  4. src/main/java/org/codelibs/fess/helper/PluginHelper.java

            }
    
            /**
             * Gets the type of the artifact based on its name.
             *
             * @return the artifact type
             */
            public ArtifactType getType() {
                return ArtifactType.getType(name);
            }
    
            /**
             * Returns a string representation of the artifact.
             *
             * @return a string in the format "name:version"
             */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 24.9K bytes
    - Viewed (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
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. 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");
            }
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 55.4K bytes
    - Viewed (1)
  7. 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) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 16 13:41:14 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  8. 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
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 05:56:45 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGenerator.java

                            * fessConfig.getThumbnailHtmlImageThumbnailWidthAsInteger().floatValue() / width);
                    final BufferedImage thumbnail = new BufferedImage(thumbnailWidth, thumbnailHeight, image.getType());
                    thumbnail.getGraphics()
                            .drawImage(image.getScaledInstance(thumbnailWidth, thumbnailHeight, Image.SCALE_AREA_AVERAGING), 0, 0,
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java

            }
    
            @Override
            public Locale getLocale() {
                return parent.getLocale();
            }
    
            @Override
            public SearchRequestType getType() {
                return parent.getType();
            }
    
            @Override
            public String getSimilarDocHash() {
                return parent.getSimilarDocHash();
            }
    
            @Override
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 27.5K bytes
    - Viewed (0)
Back to top