Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 226 for enim (0.13 sec)

  1. fastapi/openapi/models.py

    from enum import Enum
    from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Type, Union
    
    from fastapi._compat import (
        PYDANTIC_V2,
        CoreSchema,
        GetJsonSchemaHandler,
        JsonSchemaValue,
        _model_rebuild,
        with_info_plain_validator_function,
    )
    from fastapi.logger import logger
    from pydantic import AnyUrl, BaseModel, Field
    from typing_extensions import Annotated, Literal, TypedDict
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  2. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ExtensibleEnumProvider.java

    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     * An SPI interface to extend Maven with a new enum value.
     *
     * @param <T> The type of extensible enum to extend
     */
    @Experimental
    @Consumer
    public interface ExtensibleEnumProvider<T extends ExtensibleEnum> extends SpiService {
    
        /**
         * Registers new values for the T extensible enum.
         *
         * @return a collection of T instances to register
         */
        @Nonnull
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 23:54:53 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/EnumMultiset.java

        this.enumConstants = type.getEnumConstants();
        this.counts = new int[enumConstants.length];
      }
    
      private boolean isActuallyE(@CheckForNull Object o) {
        if (o instanceof Enum) {
          Enum<?> e = (Enum<?>) o;
          int index = e.ordinal();
          return index < enumConstants.length && enumConstants[index] == e;
        }
        return false;
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  4. manifests/charts/istiod-remote/templates/crd-all.gen.yaml

                    enum:
                    - FAIL_CLOSE
                    - FAIL_OPEN
                    type: string
                  imagePullPolicy:
                    description: |-
                      The pull behaviour to be applied when fetching Wasm module by either OCI image or `http/https`.
    
                      Valid Options: IfNotPresent, Always
                    enum:
                    - UNSPECIFIED_POLICY
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 20:20:47 GMT 2024
    - 606.1K bytes
    - Viewed (0)
  5. tests/test_jsonable_encoder.py

    
    def test_custom_enum_encoders():
        def custom_enum_encoder(v: Enum):
            return v.value.lower()
    
        class MyEnum(Enum):
            ENUM_VAL_1 = "ENUM_VAL_1"
    
        instance = MyEnum.ENUM_VAL_1
    
        encoded_instance = jsonable_encoder(
            instance, custom_encoder={MyEnum: custom_enum_encoder}
        )
        assert encoded_instance == custom_enum_encoder(instance)
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CollectCollectors.java

            Collector.Characteristics.UNORDERED);
      }
    
      private static final class EnumSetAccumulator<E extends Enum<E>> {
        @SuppressWarnings({"rawtypes", "unchecked"})
        static final Collector<Enum<?>, ?, ImmutableSet<? extends Enum<?>>> TO_IMMUTABLE_ENUM_SET =
            (Collector) toImmutableEnumSetGeneric();
    
        @CheckForNull private EnumSet<E> set;
    
        void add(E e) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CollectCollectors.java

      @IgnoreJRERequirement // see enclosing class (whose annotation Animal Sniffer ignores here...)
      private static final class EnumSetAccumulator<E extends Enum<E>> {
        @SuppressWarnings({"rawtypes", "unchecked"})
        static final Collector<Enum<?>, ?, ImmutableSet<? extends Enum<?>>> TO_IMMUTABLE_ENUM_SET =
            (Collector) toImmutableEnumSetGeneric();
    
        @CheckForNull private EnumSet<E> set;
    
        void add(E e) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/path-params.md

    ### Create an `Enum` class
    
    Import `Enum` and create a sub-class that inherits from `str` and from `Enum`.
    
    By inheriting from `str` the API docs will be able to know that the values must be of type `string` and will be able to render correctly.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableEnumSet.java

     */
    @GwtCompatible(serializable = true, emulated = true)
    @SuppressWarnings("serial") // we're overriding default serialization
    @ElementTypesAreNonnullByDefault
    final class ImmutableEnumSet<E extends Enum<E>> extends ImmutableSet<E> {
      static <E extends Enum<E>> ImmutableSet<E> asImmutable(EnumSet<E> set) {
        switch (set.size()) {
          case 0:
            return ImmutableSet.of();
          case 1:
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/path-params.md

    ### Создание класса `Enum`
    
    Импортируйте `Enum` и создайте подкласс, который наследуется от `str` и `Enum`.
    
    Мы наследуемся от `str`, чтобы документация API могла понять, что значения должны быть типа `string` и отображалась правильно.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.1K bytes
    - Viewed (0)
Back to top