Search Options

Results per page
Sort
Preferred Languages
Advance

Results 5181 - 5190 of 5,326 for Returns (0.22 sec)

  1. docs/ja/docs/tutorial/dependencies/sub-dependencies.md

    高度なシナリオでは、「キャッシュされた」値を使うのではなく、同じリクエストの各ステップ(おそらく複数回)で依存関係を呼び出す必要があることがわかっている場合、`Depens`を使用する際に、`use_cache=False`というパラメータを設定することができます。
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
        return {"fresh_value": fresh_value}
    ```
    
    ## まとめ
    
    ここで使われている派手な言葉は別にして、**依存性注入** システムは非常にシンプルです。
    
    *path operation関数*と同じように見えるただの関数です。
    
    しかし、それでも非常に強力で、任意の深くネストされた依存関係「グラフ」(ツリー)を宣言することができます。
    
    /// tip | 豆知識
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. cmd/object-api-listobjects_test.go

    		// If marker is *after* the last possible object from the prefix it should return an empty list.
    		{"test-bucket-list-object", "Asia", "europe-object", "", 0, ListObjectsInfo{}, nil, true},
    		// If the marker is *before* the first possible object from the prefix it should return the first object.
    		{"test-bucket-list-object", "Asia", "A", "", 1, resultCases[4], nil, true},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 76.1K bytes
    - Viewed (0)
  3. docs/ko/docs/async.md

        results = await some_library()
        return results
    ```
    
    /// note | 참고
    
    `async def`로 생성된 함수 내부에서만 `await`를 사용할 수 있습니다.
    
    ///
    
    ---
    
    데이터베이스, API, 파일시스템 등과 의사소통하는 제3의 라이브러리를 사용하고, 그것이 `await`를 지원하지 않는 경우(현재 거의 모든 데이터베이스 라이브러리가 그러합니다), *경로 작동 함수*를 일반적인 `def`를 사용해 선언하십시오:
    
    ```Python hl_lines="2"
    @app.get('/')
    def results():
        results = some_library()
        return results
    ```
    
    ---
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  4. docs/changelogs/upgrading_to_okhttp_4.md

    #### Credentials.basic()
    
    The username and password parameters to `Credentials.basic()` are now non-null strings. In OkHttp
    3.x, null would yield a username or password of "null".
    
    #### HttpUrl.queryParameterValues()
    
    The return type of `HttpUrl.queryParameterValues()` is `List<String?>`. Lists that may contain null
    are uncommon and Kotlin callers may have incorrectly assigned the result to `List<String>`.
    
    
    Code Cleanup
    ------------
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  5. pom.xml

    				</executions>
    				<configuration>
    					<failOnError>false</failOnError>
    					<ignored>
    						<difference>
    							<!-- seems to be a clirr bug that it cannot handle the different inherited 
    								return types -->
    							<className>**</className>
    							<differenceType>7006</differenceType>
    							<method>*</method>
    							<from>*</from>
    							<to>*</to>
    						</difference>
    						<difference>
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. docs/en/docs/environment-variables.md

    print(f"Hello {name} from Python")
    ```
    
    /// tip
    
    The second argument to <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> is the default value to return.
    
    If not provided, it's `None` by default, here we provide `"World"` as the default value to use.
    
    ///
    
    Then you could call that Python program:
    
    //// tab | Linux, macOS, Windows Bash
    
    <div class="termy">
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt

                    }
                  }
                }
    
                else -> {
                  unexpectedValues = true // Unexpected extension.
                }
              }
            }
          }
    
          return WebSocketExtensions(
            perMessageDeflate = compressionEnabled,
            clientMaxWindowBits = clientMaxWindowBits,
            clientNoContextTakeover = clientNoContextTakeover,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  8. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManagerTest.java

        @Inject
        private ArtifactFactory artifactFactory;
    
        DefaultUpdateCheckManager updateCheckManager;
    
        @Override
        protected String component() {
            return "updateCheckManager";
        }
    
        @BeforeEach
        @Override
        public void setUp() throws Exception {
            super.setUp();
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/body-updates.md

        * This is comparable to using the model's `.model_dump()` method again, but it makes sure (and converts) the values to data types that can be converted to JSON, for example, `datetime` to `str`.
    * Save the data to your DB.
    * Return the updated model.
    
    {* ../../docs_src/body_updates/tutorial002_py310.py hl[28:35] *}
    
    /// tip
    
    You can actually use this same technique with an HTTP `PUT` operation.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  10. docs/pt/docs/advanced/security/http-basic-auth.md

    {* ../../docs_src/security/tutorial007_an_py39.py hl[1,12:24] *}
    
    Isso seria parecido com:
    
    ```Python
    if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"):
        # Return some error
        ...
    ```
    
    Porém, ao utilizar o `secrets.compare_digest()`, isso estará seguro contra um tipo de ataque chamado "timing attacks" (ataques de temporização).
    
    ### Ataques de Temporização
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top