Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 54 for commits (0.17 sec)

  1. docs/en/docs/tutorial/dependencies/index.md

    When you need to use the `common_parameters()` dependency, you have to write the whole parameter with the type annotation and `Depends()`:
    
    ```Python
    commons: Annotated[dict, Depends(common_parameters)]
    ```
    
    But because we are using `Annotated`, we can store that `Annotated` value in a variable and use it in multiple places:
    
    === "Python 3.10+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  2. fastapi/param_functions.py

            return {"q": q, "skip": skip, "limit": limit}
    
    
        @app.get("/items/")
        async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
            return commons
        ```
        """
        return params.Depends(dependency=dependency, use_cache=use_cache)
    
    
    def Security(  # noqa: N802
        dependency: Annotated[
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  3. cmd/erasure-multipart.go

    	// Save current erasure metadata for validation.
    	currentFI := fi
    
    	// Allocate parts similar to incoming slice.
    	fi.Parts = make([]ObjectPartInfo, len(parts))
    
    	// Validate each part and then commit to disk.
    	for i, part := range parts {
    		partIdx := objectPartIndex(currentFI.Parts, part.PartNumber)
    		// All parts should have same part number.
    		if partIdx == -1 {
    			invp := InvalidPart{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/dependencies/index.md

    ## `Annotated`인 의존성 공유하기
    
    위의 예제에서 몇몇 작은 **코드 중복**이 있다는 것을 보았을 겁니다.
    
    `common_parameters()`의존을 사용해야 한다면, 타입 명시와 `Depends()`와 함께 전체 매개변수를 적어야 합니다:
    
    ```Python
    commons: Annotated[dict, Depends(common_parameters)]
    ```
    
    하지만 `Annotated`를 사용하고 있기에, `Annotated` 값을 변수에 저장하고 여러 장소에서 사용할 수 있습니다:
    
    === "Python 3.10+"
    
        ```Python hl_lines="12  16  21"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/bigger-applications.md

    * And the file `app/internal/admin.py` is another submodule: `app.internal.admin`.
    
    <img src="/img/tutorial/bigger-applications/package.svg">
    
    The same file structure with comments:
    
    ```
    .
    ├── app                  # "app" is a Python package
    │   ├── __init__.py      # this file makes "app" a "Python package"
    │   ├── main.py          # "main" module, e.g. import app.main
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  6. RELEASE.md

    ## Bug Fixes and Other Changes
    
    *   Added a versioning framework for `GraphDef`s to ensure compatibility
    *   Enforced Python 3 compatibility
    *   Internal changes now show up as sensibly separated commits
    *   Open-sourced the doc generator
    *   Un-fork Eigen
    *   Simplified the `BUILD` files and cleaned up C++ headers
    *   TensorFlow can now be used as a submodule in another bazel build
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Apr 29 19:17:57 GMT 2024
    - 727.7K bytes
    - Viewed (8)
  7. docs/en/docs/python-types.md

    * The variable `items_s` is a `set`, and each of its items is of type `bytes`.
    
    #### Dict
    
    To define a `dict`, you pass 2 type parameters, separated by commas.
    
    The first type parameter is for the keys of the `dict`.
    
    The second type parameter is for the values of the `dict`:
    
    === "Python 3.9+"
    
        ```Python hl_lines="1"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  8. api/maven-api-model/src/main/mdo/maven.mdo

            </field>
          </fields>
        </class>
        <class>
          <name>Contributor</name>
          <description>Description of a person who has contributed to the project, but who does not have
            commit privileges. Usually, these contributions come in the form of patches submitted.</description>
          <version>3.0.0+</version>
          <fields>
            <field>
              <name>name</name>
    XML
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Apr 23 13:29:46 GMT 2024
    - 115.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

         *     might be the keys' natural order)
         * @since 31.0
         */
        @Override
        @SuppressWarnings("unchecked") // see inline comments
        public ImmutableSortedMap<K, V> buildOrThrow() {
          switch (size) {
            case 0:
              return emptyMap(comparator);
            case 1:
              // We're careful to put only K and V instances in.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  10. cmd/xl-storage.go

    			}
    			return res, osErrToFileErr(err)
    		}
    		diskHealthCheckOK(ctx, err)
    	}
    
    	if contextCanceled(ctx) {
    		return res, ctx.Err()
    	}
    
    	// Commit meta-file
    	if err = renameAll(srcFilePath, dstFilePath, skipParent); err != nil {
    		if legacyPreserved {
    			// Any failed rename calls un-roll previous transaction.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
Back to top