Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 721 - 730 of 1,102 for DEF (0.09 seconds)

  1. build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/doc/RestTestsFromSnippetsTask.groovy

                }
            }
    
            void emitDo(String method, String pathAndQuery, String body,
                    String catchPart, List warnings, boolean inSetup, boolean skipShardFailures) {
                def (String path, String query) = pathAndQuery.tokenize('?')
                if (path == null) {
                    path = '' // Catch requests to the root...
                } else {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 19.5K bytes
    - Click Count (0)
  2. build-tools-internal/build.gradle

    /*****************************************************************************
     *         Java version                                                      *
     *****************************************************************************/
    
    def minCompilerJava = JavaVersion.toVersion(file('src/main/resources/minimumCompilerVersion').text)
    targetCompatibility = minCompilerJava
    sourceCompatibility = minCompilerJava
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 13 18:10:22 GMT 2021
    - 11.3K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/first-steps.md

    {* ../../docs_src/first_steps/tutorial001_py310.py hl[7] *}
    
    這就是一個 Python 函式。
    
    它將會在 **FastAPI** 收到一個使用 `GET` 操作、網址為「`/`」的請求時被呼叫。
    
    在這種情況下,它是一個 `async` 函式。
    
    ---
    
    你也可以將它定義為一般函式,而不是 `async def`:
    
    {* ../../docs_src/first_steps/tutorial003_py310.py hl[7] *}
    
    /// note
    
    如果你不知道差別,請查看 [Async: *"In a hurry?"*](../async.md#in-a-hurry)。
    
    ///
    
    ### 第五步:回傳內容 { #step-5-return-the-content }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 13.3K bytes
    - Click Count (0)
  4. docs/ko/docs/tutorial/server-sent-events.md

    /// tip | 팁
    
    Pydantic이 **Rust** 쪽에서 직렬화하므로, 반환 타입을 선언하지 않았을 때보다 훨씬 더 높은 **성능**을 얻을 수 있습니다.
    
    ///
    
    ### 비 async *경로 처리 함수* { #non-async-path-operation-functions }
    
    `async`가 없는 일반 `def` 함수도 사용할 수 있으며, 동일하게 `yield`를 사용할 수 있습니다.
    
    FastAPI가 이벤트 루프를 막지 않도록 올바르게 실행을 보장합니다.
    
    이 경우 함수가 async가 아니므로 적절한 반환 타입은 `Iterable[Item]`입니다:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[28:31] hl[29] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:56:39 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  5. docs/tr/docs/tutorial/first-steps.md

    Bu bir Python fonksiyonudur.
    
    **FastAPI**, "`/`" URL'ine `GET` operation kullanarak bir request aldığında bu fonksiyonu çağıracaktır.
    
    Bu durumda, bu bir `async` fonksiyondur.
    
    ---
    
    Bunu `async def` yerine normal bir fonksiyon olarak da tanımlayabilirsiniz:
    
    {* ../../docs_src/first_steps/tutorial003_py310.py hl[7] *}
    
    /// note | Not
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 14.4K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt

          override fun writeTo(sink: BufferedSink) {
            try {
              sink.writeUtf8("abc")
              sink.flush()
              Thread.sleep(sleepMillis.toLong())
              sink.writeUtf8("def")
            } catch (e: InterruptedException) {
              throw InterruptedIOException()
            }
          }
        }
    
      companion object {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    ## Classes as dependencies { #classes-as-dependencies_1 }
    
    You might notice that to create an instance of a Python class, you use that same syntax.
    
    For example:
    
    ```Python
    class Cat:
        def __init__(self, name: str):
            self.name = name
    
    
    fluffy = Cat(name="Mr Fluffy")
    ```
    
    In this case, `fluffy` is an instance of the class `Cat`.
    
    And to create `fluffy`, you are "calling" `Cat`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:32:12 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  8. docs/ja/docs/advanced/settings.md

    しかし、次のようにするたびに:
    
    ```Python
    Settings()
    ```
    
    新しい `Settings` オブジェクトが作成され、その作成時に `.env` ファイルが再度読み込まれます。
    
    依存関数が次のようであれば:
    
    ```Python
    def get_settings():
        return Settings()
    ```
    
    各リクエストごとにそのオブジェクトを作成し、各リクエストごとに `.env` ファイルを読み込むことになります。⚠️
    
    しかし、上に `@lru_cache` デコレータを使っているので、`Settings` オブジェクトは最初に呼び出されたときに一度だけ作成されます。✔️
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 12.7K bytes
    - Click Count (0)
  9. docs/es/docs/tutorial/first-steps.md

    Será llamada por **FastAPI** cuando reciba un request en la URL "`/`" usando una operación `GET`.
    
    En este caso, es una función `async`.
    
    ---
    
    También podrías definirla como una función normal en lugar de `async def`:
    
    {* ../../docs_src/first_steps/tutorial003_py310.py hl[7] *}
    
    /// note | Nota
    
    Si no sabes la diferencia, Revisa la sección [Async: *"¿Tienes prisa?"*](../async.md#in-a-hurry).
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 13.9K bytes
    - Click Count (0)
  10. docs/fr/docs/tutorial/first-steps.md

    Dans ce cas, c’est une fonction `async`.
    
    ---
    
    Vous pouvez aussi la définir comme une fonction normale au lieu de `async def` :
    
    {* ../../docs_src/first_steps/tutorial003_py310.py hl[7] *}
    
    /// note | Remarque
    
    Si vous ne connaissez pas la différence, consultez [Asynchrone : « Pressé ? »](../async.md#in-a-hurry).
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 15.1K bytes
    - Click Count (0)
Back to Top