Search Options

Results per page
Sort
Preferred Languages
Advance

Results 501 - 510 of 1,097 for asdict (0.12 sec)

  1. guava/src/com/google/common/primitives/Chars.java

        Arrays.sort(array, fromIndex, toIndex);
        reverse(array, fromIndex, toIndex);
      }
    
      /**
       * Reverses the elements of {@code array}. This is equivalent to {@code
       * Collections.reverse(Chars.asList(array))}, but is likely to be more efficient.
       *
       * @since 23.1
       */
      public static void reverse(char[] array) {
        checkNotNull(array);
        reverse(array, 0, array.length);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/DefaultProjectDependenciesResolver.java

            ArtifactFilter scopeFilter = new ScopeArtifactFilter( scope );
    
            ArtifactFilter filter;
    
            if ( ! exclusions.isEmpty() )
            {
                filter = new AndArtifactFilter( Arrays.asList( new ArtifactFilter[]{
                    new ExcludesArtifactFilter( exclusions ), scopeFilter } ) );
            }
            else
            {
                filter = scopeFilter;
            }
            */
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/DescendingImmutableSortedMultiset.java

      }
    
      @Override
      public ImmutableSortedSet<E> elementSet() {
        return forward.elementSet().descendingSet();
      }
    
      @Override
      Entry<E> getEntry(int index) {
        return forward.entrySet().asList().reverse().get(index);
      }
    
      @Override
      public ImmutableSortedMultiset<E> descendingMultiset() {
        return forward;
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. fastapi/dependencies/utils.py

        return values
    
    
    async def request_body_to_args(
        body_fields: List[ModelField],
        received_body: Optional[Union[Dict[str, Any], FormData]],
        embed_body_fields: bool,
    ) -> Tuple[Dict[str, Any], List[Dict[str, Any]]]:
        values: Dict[str, Any] = {}
        errors: List[Dict[str, Any]] = []
        assert body_fields, "request_body_to_args() should be called with fields"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 21:46:26 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/extra-models.md

    #### 別のモデルからつくるPydanticモデル
    
    上述の例では`user_in.dict()`から`user_dict`をこのコードのように取得していますが:
    
    ```Python
    user_dict = user_in.dict()
    UserInDB(**user_dict)
    ```
    
    これは以下と同等です:
    
    ```Python
    UserInDB(**user_in.dict())
    ```
    
    ...なぜなら`user_in.dict()`は`dict`であり、`**`を付与して`UserInDB`を渡してPythonに「展開」させているからです。
    
    そこで、別のPydanticモデルのデータからPydanticモデルを取得します。
    
    #### `dict`の展開と追加引数
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/Longs.java

       * <p><b>Note:</b> when possible, you should represent your data as an {@link ImmutableLongArray}
       * instead, which has an {@link ImmutableLongArray#asList asList} view.
       *
       * @param backingArray the array to back the list
       * @return a list view of the array
       */
      public static List<Long> asList(long... backingArray) {
        if (backingArray.length == 0) {
          return Collections.emptyList();
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/Longs.java

       * <p><b>Note:</b> when possible, you should represent your data as an {@link ImmutableLongArray}
       * instead, which has an {@link ImmutableLongArray#asList asList} view.
       *
       * @param backingArray the array to back the list
       * @return a list view of the array
       */
      public static List<Long> asList(long... backingArray) {
        if (backingArray.length == 0) {
          return Collections.emptyList();
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 29K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTestSuiteBuilder.java

      @SuppressWarnings("rawtypes") // class literals
      @Override
      protected List<Class<? extends AbstractTester>> getTesters() {
        return Arrays.<Class<? extends AbstractTester>>asList(
            CollectionAddAllTester.class,
            CollectionAddTester.class,
            CollectionClearTester.class,
            CollectionContainsAllTester.class,
            CollectionContainsTester.class,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/MapCacheTest.java

        this.mapCache = mapCache;
      }
    
      @Parameters
      public static Collection<Object[]> parameters() {
        Comparator<String> nullsLast = Ordering.natural().nullsLast();
    
        return Arrays.asList(
            new Object[][] {
              {new MapIteratorCache<String, String>(new HashMap<String, String>())},
              {new MapIteratorCache<String, String>(new TreeMap<String, String>(nullsLast))},
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 16:23:26 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  10. fastapi/_compat.py

        ) -> Any:
            return {}
    
        def get_model_definitions(
            *,
            flat_models: Set[Union[Type[BaseModel], Type[Enum]]],
            model_name_map: Dict[Union[Type[BaseModel], Type[Enum]], str],
        ) -> Dict[str, Any]:
            definitions: Dict[str, Dict[str, Any]] = {}
            for model in flat_models:
                m_schema, m_definitions, m_nested_models = model_process_schema(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:36:32 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top