Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 8,056 for return (0.21 sec)

  1. tests/test_response_model_as_return_annotation.py

    app = FastAPI()
    
    
    @app.get("/no_response_model-no_annotation-return_model")
    def no_response_model_no_annotation_return_model():
        return User(name="John", surname="Doe")
    
    
    @app.get("/no_response_model-no_annotation-return_dict")
    def no_response_model_no_annotation_return_dict():
        return {"name": "John", "surname": "Doe"}
    
    
    @app.get("/response_model-no_annotation-return_same_model", response_model=User)
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Mon Aug 14 09:49:57 GMT 2023
    - 47.7K bytes
    - Viewed (0)
  2. bin/retry.sh

    # to 5 times.
    
    function fail {
      echo "${1}" >&2
      exit 1
    }
    
    function isatty() {
     if [ -t 1 ] ; then
       return 0
      else
       return 1
      fi
    }
    
    function retry {
      local tmpFile
      tmpFile=$(mktemp)
      trap 'rm -f "${tmpFile}"' EXIT
    
      local failureRegex="$1"
      shift
      local n=1
      local max=5
      while true; do
        unset SHELL # Don't let environment control which shell to use
        if isatty; then
    Shell Script
    - Registered: Wed Apr 17 22:53:10 GMT 2024
    - Last Modified: Fri Jun 11 16:08:08 GMT 2021
    - 2K bytes
    - Viewed (0)
  3. internal/bucket/object/lock/lock.go

    		return &ret, ErrPastObjectLockRetainDate
    	}
    
    	if !ret.RetainUntilDate.IsZero() && ret.RetainUntilDate.Before(t) {
    		return &ret, ErrPastObjectLockRetainDate
    	}
    
    	return &ret, nil
    }
    
    // IsObjectLockRetentionRequested returns true if object lock retention headers are set.
    func IsObjectLockRetentionRequested(h http.Header) bool {
    	if _, ok := h[AmzObjectLockMode]; ok {
    		return true
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableMap.java

        return new UnmodifiableIterator<K>() {
          @Override
          public boolean hasNext() {
            return entryIterator.hasNext();
          }
    
          @Override
          public K next() {
            return entryIterator.next().getKey();
          }
        };
      }
    
      Spliterator<K> keySpliterator() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 44.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFile.java

                return true;
            }
            return exists() && ( this.attributes & ATTR_READONLY ) == 0;
        }
    
    
        @Override
        public boolean isDirectory () throws SmbException {
            if ( this.fileLocator.isRootOrShare() ) {
                return true;
            }
            if ( !exists() )
                return false;
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 81.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/Doubles.java

       * @param target a primitive {@code double} value
       * @return {@code true} if {@code array[i] == target} for some value of {@code i}
       */
      public static boolean contains(double[] array, double target) {
        for (double value : array) {
          if (value == target) {
            return true;
          }
        }
        return false;
      }
    
      /**
       * Returns the index of the first appearance of the value {@code target} in {@code array}. Note
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Chars.java

       * @param target a primitive {@code char} value
       * @return {@code true} if {@code array[i] == target} for some value of {@code i}
       */
      public static boolean contains(char[] array, char target) {
        for (char value : array) {
          if (value == target) {
            return true;
          }
        }
        return false;
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/TypeToken.java

      }
    
      /** Returns an instance of type token that wraps {@code type}. */
      public static <T> TypeToken<T> of(Class<T> type) {
        return new SimpleTypeToken<>(type);
      }
    
      /** Returns an instance of type token that wraps {@code type}. */
      public static TypeToken<?> of(Type type) {
        return new SimpleTypeToken<>(type);
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ArrayTable.java

        @Override
        public int size() {
          return keyIndex.size();
        }
    
        @Override
        public boolean isEmpty() {
          return keyIndex.isEmpty();
        }
    
        Entry<K, V> getEntry(final int index) {
          checkElementIndex(index, size());
          return new AbstractMapEntry<K, V>() {
            @Override
            public K getKey() {
              return ArrayMap.this.getKey(index);
            }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 26.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Functions.java

       * @param defaultValue the value to return for inputs that aren't map keys
       * @return function that returns {@code map.get(a)} when {@code a} is a key, or {@code
       *     defaultValue} otherwise
       */
      public static <K extends @Nullable Object, V extends @Nullable Object> Function<K, V> forMap(
          Map<K, ? extends V> map, @ParametricNullness V defaultValue) {
        return new ForMapWithDefault<>(map, defaultValue);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 14.1K bytes
    - Viewed (0)
Back to top