Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 374 for advanced (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/ja/docs/advanced/advanced-dependencies.md

    # 高度な依存関係 { #advanced-dependencies }
    
    ## パラメータ化された依存関係 { #parameterized-dependencies }
    
    これまで見てきた依存関係は、固定の関数またはクラスでした。
    
    しかし、多くの異なる関数やクラスを宣言せずに、その依存関係にパラメータを設定したい場合があります。
    
    たとえば、クエリパラメータ `q` に、ある固定の内容が含まれているかを検査する依存関係が欲しいとします。
    
    ただし、その固定の内容はパラメータ化できるようにしたいです。
    
    ## "callable" なインスタンス { #a-callable-instance }
    
    Python には、クラスのインスタンスを "callable" にする方法があります。
    
    クラス自体(これはすでに callable です)ではなく、そのクラスのインスタンスです。
    
    そのためには、`__call__` メソッドを宣言します:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 11.4K bytes
    - Click Count (0)
  2. docs/en/docs/advanced/advanced-python-types.md

    # Advanced Python Types { #advanced-python-types }
    
    Here are some additional ideas that might be useful when working with Python types.
    
    ## Using `Union` or `Optional` { #using-union-or-optional }
    
    If your code for some reason can't use `|`, for example if it's not in a type annotation but in something like `response_model=`, instead of using the vertical bar (`|`) you can use `Union` from `typing`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:32:12 GMT 2026
    - 2K bytes
    - Click Count (0)
  3. docs/ko/docs/advanced/advanced-python-types.md

    # 고급 Python 타입 { #advanced-python-types }
    
    Python 타입을 다룰 때 유용할 수 있는 몇 가지 추가 아이디어를 소개합니다.
    
    ## `Union` 또는 `Optional` 사용 { #using-union-or-optional }
    
    어떤 이유로 코드에서 `|`를 사용할 수 없다면, 예를 들어 타입 어노테이션이 아니라 `response_model=` 같은 곳이라면, 파이프 문자(`|`) 대신 `typing`의 `Union`을 사용할 수 있습니다.
    
    예를 들어, 어떤 값이 `str` 또는 `None`이 될 수 있다고 선언할 수 있습니다:
    
    ```python
    from typing import Union
    
    
    def say_hi(name: Union[str, None]):
            print(f"Hi {name}!")
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:57:01 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/advanced/advanced-python-types.md

    # 進階 Python 型別 { #advanced-python-types }
    
    以下是一些在使用 Python 型別時可能有用的額外想法。
    
    ## 使用 `Union` 或 `Optional` { #using-union-or-optional }
    
    如果你的程式碼因某些原因無法使用 `|`,例如不是在型別註記中,而是在像 `response_model=` 之類的參數位置,那麼你可以用 `typing` 中的 `Union` 來取代豎線(`|`)。
    
    例如,你可以宣告某個值可以是 `str` 或 `None`:
    
    ```python
    from typing import Union
    
    
    def say_hi(name: Union[str, None]):
            print(f"Hi {name}!")
    ```
    
    在 `typing` 中也有用 `Optional` 宣告某個值可以是 `None` 的速記法。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  5. docs/en/docs/advanced/path-operation-advanced-configuration.md

    # Path Operation Advanced Configuration { #path-operation-advanced-configuration }
    
    ## OpenAPI operationId { #openapi-operationid }
    
    /// warning
    
    If you are not an "expert" in OpenAPI, you probably don't need this.
    
    ///
    
    You can set the OpenAPI `operationId` to be used in your *path operation* with the parameter `operation_id`.
    
    You would have to make sure that it is unique for each operation.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  6. docs/ko/docs/advanced/path-operation-advanced-configuration.md

    # 경로 처리 고급 구성 { #path-operation-advanced-configuration }
    
    ## OpenAPI operationId { #openapi-operationid }
    
    /// warning | 경고
    
    OpenAPI “전문가”가 아니라면, 아마 이 내용은 필요하지 않을 것입니다.
    
    ///
    
    매개변수 `operation_id`를 사용해 *경로 처리*에 사용할 OpenAPI `operationId`를 설정할 수 있습니다.
    
    각 작업마다 고유하도록 보장해야 합니다.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial001_py310.py hl[6] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  7. docs/zh/docs/advanced/path-operation-advanced-configuration.md

    # 路径操作的高级配置 { #path-operation-advanced-configuration }
    
    ## OpenAPI 的 operationId { #openapi-operationid }
    
    /// warning
    
    如果你并非 OpenAPI 的“专家”,你可能不需要这部分内容。
    
    ///
    
    你可以在 *路径操作* 中通过参数 `operation_id` 设置要使用的 OpenAPI `operationId`。
    
    务必确保每个操作的 `operation_id` 都是唯一的。
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial001_py310.py hl[6] *}
    
    ### 使用 *路径操作函数* 的函数名作为 operationId { #using-the-path-operation-function-name-as-the-operationid }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  8. docs/ja/docs/advanced/path-operation-advanced-configuration.md

    # Path Operationの高度な設定 { #path-operation-advanced-configuration }
    
    ## OpenAPI operationId { #openapi-operationid }
    
    /// warning | 注意
    
    OpenAPIの「エキスパート」でなければ、これはおそらく必要ありません。
    
    ///
    
    *path operation* で `operation_id` パラメータを利用することで、OpenAPIの `operationId` を設定できます。
    
    各オペレーションで一意になるようにする必要があります。
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial001_py310.py hl[6] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  9. docs/tr/docs/advanced/advanced-dependencies.md

    # Gelişmiş Dependency'ler { #advanced-dependencies }
    
    ## Parametreli dependency'ler { #parameterized-dependencies }
    
    Şimdiye kadar gördüğümüz tüm dependency'ler sabit bir function ya da class idi.
    
    Ancak, birçok farklı function veya class tanımlamak zorunda kalmadan, dependency üzerinde bazı parametreler ayarlamak isteyebileceğiniz durumlar olabilir.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 10K bytes
    - Click Count (0)
  10. docs/ru/docs/advanced/advanced-dependencies.md

    # Продвинутые зависимости { #advanced-dependencies }
    
    ## Параметризованные зависимости { #parameterized-dependencies }
    
    Все зависимости, которые мы видели, — это конкретная функция или класс.
    
    Но бывают случаи, когда нужно задавать параметры зависимости, не объявляя много разных функций или классов.
    
    Представим, что нам нужна зависимость, которая проверяет, содержит ли query-параметр `q` некоторое фиксированное содержимое.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 14.1K bytes
    - Click Count (0)
Back to Top