Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for enum2 (0.17 sec)

  1. fastapi/routing.py

    import asyncio
    import dataclasses
    import email.message
    import inspect
    import json
    from contextlib import AsyncExitStack
    from enum import Enum, IntEnum
    from typing import (
        Any,
        Callable,
        Coroutine,
        Dict,
        List,
        Optional,
        Sequence,
        Set,
        Tuple,
        Type,
        Union,
    )
    
    from fastapi import params
    from fastapi._compat import (
        ModelField,
        Undefined,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 170.1K bytes
    - Viewed (0)
  2. fastapi/applications.py

    from enum import Enum
    from typing import (
        Any,
        Awaitable,
        Callable,
        Coroutine,
        Dict,
        List,
        Optional,
        Sequence,
        Type,
        TypeVar,
        Union,
    )
    
    from fastapi import routing
    from fastapi.datastructures import Default, DefaultPlaceholder
    from fastapi.exception_handlers import (
        http_exception_handler,
        request_validation_exception_handler,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 00:48:03 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Maps.java

       * and values are the result of applying the provided mapping functions to the input elements. The
       * resulting implementation is specialized for enum key types. The returned map and its views will
       * iterate over keys in their enum definition order, not encounter order.
       *
       * <p>If the mapped keys contain duplicates, an {@code IllegalArgumentException} is thrown when
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 159.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Maps.java

       * resulting implementation is specialized for enum key types. The returned map and its views will
       * iterate over keys in their enum definition order, not encounter order.
       *
       * <p>If the mapped keys contain duplicates, the values are merged using the specified merging
       * function.
       *
       * @since 21.0
       */
      public static <T extends @Nullable Object, K extends Enum<K>, V>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 165.9K bytes
    - Viewed (0)
  5. src/runtime/proc.go

    		inc:   ord.coprimes[i/ord.count%uint32(len(ord.coprimes))],
    	}
    }
    
    func (enum *randomEnum) done() bool {
    	return enum.i == enum.count
    }
    
    func (enum *randomEnum) next() {
    	enum.i++
    	enum.pos = (enum.pos + enum.inc) % enum.count
    }
    
    func (enum *randomEnum) position() uint32 {
    	return enum.pos
    }
    
    func gcd(a, b uint32) uint32 {
    	for b != 0 {
    		a, b = b, a%b
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        val requestAfter = server.takeRequest()
        assertThat(
          requestAfter.sequenceNumber == 0 ||
            server.requestCount == 3 && server.takeRequest().sequenceNumber == 0,
        ).isTrue()
      }
    
      internal enum class WriteKind {
        BYTE_BY_BYTE,
        SMALL_BUFFERS,
        LARGE_BUFFERS,
      }
    
      @Test
      fun chunkedUpload_byteByByte() {
        doUpload(TransferKind.CHUNKED, WriteKind.BYTE_BY_BYTE)
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/LocalCache.java

      }
    
      boolean usesKeyReferences() {
        return keyStrength != Strength.STRONG;
      }
    
      boolean usesValueReferences() {
        return valueStrength != Strength.STRONG;
      }
    
      enum Strength {
        /*
         * TODO(kevinb): If we strongly reference the value and aren't loading, we needn't wrap the
         * value. This could save ~8 bytes per entry.
         */
    
        STRONG {
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 143.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/LocalCache.java

      }
    
      boolean usesKeyReferences() {
        return keyStrength != Strength.STRONG;
      }
    
      boolean usesValueReferences() {
        return valueStrength != Strength.STRONG;
      }
    
      enum Strength {
        /*
         * TODO(kevinb): If we strongly reference the value and aren't loading, we needn't wrap the
         * value. This could save ~8 bytes per entry.
         */
    
        STRONG {
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_pods.go

    	if err != nil {
    		return 0, 0, fmt.Errorf("error parsing line %q: %w", input, err)
    	}
    
    	num2, err := strconv.ParseUint(parts[3], 10, 32)
    	if err != nil {
    		return 0, 0, fmt.Errorf("error parsing line %q: %w", input, err)
    	}
    
    	return uint32(num1), uint32(num2), nil
    }
    
    // getKubeletMappings returns the range of IDs that can be used to configure user namespaces.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    			},
    		},
    		{name: "enums",
    			obj: map[string]interface{}{"enumStr": "Pending"},
    			schema: objectTypePtr(map[string]schema.Structural{"enumStr": {
    				Generic: schema.Generic{
    					Type: "string",
    				},
    				ValueValidation: &schema.ValueValidation{
    					Enum: []schema.JSON{
    						{Object: "Pending"},
    						{Object: "Available"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
Back to top