Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 645 for dependentes (0.11 sec)

  1. docs/en/docs/advanced/testing-dependencies.md

    # Testing Dependencies with Overrides
    
    ## Overriding dependencies during testing
    
    There are some scenarios where you might want to override a dependency during testing.
    
    You don't want the original dependency to run (nor any of the sub-dependencies it might have).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md

    ```Python hl_lines="2-4"
    {!../../docs_src/dependencies/tutorial007.py!}
    ```
    
    Полученное значение и есть то, что будет внедрено в функцию операции пути и другие зависимости:
    
    ```Python hl_lines="4"
    {!../../docs_src/dependencies/tutorial007.py!}
    ```
    
    Код, следующий за оператором `yield`, выполняется после доставки ответа:
    
    ```Python hl_lines="5-6"
    {!../../docs_src/dependencies/tutorial007.py!}
    ```
    
    /// tip | "Подсказка"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md

    レスポンスを送信する前に`yield`文を含む前のコードのみが実行されます。
    
    ```Python hl_lines="2 3 4"
    {!../../docs_src/dependencies/tutorial007.py!}
    ```
    
    生成された値は、*path operations*や他の依存関係に注入されるものです:
    
    ```Python hl_lines="4"
    {!../../docs_src/dependencies/tutorial007.py!}
    ```
    
    `yield`文に続くコードは、レスポンスが送信された後に実行されます:
    
    ```Python hl_lines="5 6"
    {!../../docs_src/dependencies/tutorial007.py!}
    ```
    
    /// tip | "豆知識"
    
    `async`や通常の関数を使用することができます。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/dependencies/classes-as-dependencies.md

    ```Python hl_lines="11-15"
    {!> ../../docs_src/dependencies/tutorial002.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
    
    ```Python hl_lines="9-13"
    {!> ../../docs_src/dependencies/tutorial002_py310.py!}
    ```
    
    ////
    
    💸 🙋 `__init__` 👩‍🔬 ⚙️ ✍ 👐 🎓:
    
    //// tab | 🐍 3️⃣.6️⃣ & 🔛
    
    ```Python hl_lines="12"
    {!> ../../docs_src/dependencies/tutorial002.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/dependencies/classes-as-dependencies.md

    ```Python hl_lines="9-13"
    {!> ../../docs_src/dependencies/tutorial002_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="11-15"
    {!> ../../docs_src/dependencies/tutorial002.py!}
    ```
    
    ////
    
    注意用于创建类实例的 `__init__` 方法:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="10"
    {!> ../../docs_src/dependencies/tutorial002_py310.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/dependencies/classes-as-dependencies.md

    ```Python hl_lines="11-15"
    {!> ../../docs_src/dependencies/tutorial002.py!}
    ```
    
    ////
    
    //// tab | 파이썬 3.10 이상
    
    ```Python hl_lines="9-13"
    {!> ../../docs_src/dependencies/tutorial002_py310.py!}
    ```
    
    ////
    
    클래스의 인스턴스를 생성하는 데 사용되는 `__init__` 메서드에 주목하기 바랍니다:
    
    //// tab | 파이썬 3.6 이상
    
    ```Python hl_lines="12"
    {!> ../../docs_src/dependencies/tutorial002.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    ## Adicionando `dependencies` ao decorador da operação de rota
    
    O *decorador da operação de rota* recebe um argumento opcional `dependencies`.
    
    Ele deve ser uma lista de `Depends()`:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="19"
    {!> ../../docs_src/dependencies/tutorial006_an_py39.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    ## `dependencies` zum *Pfadoperation-Dekorator* hinzufügen
    
    Der *Pfadoperation-Dekorator* erhält ein optionales Argument `dependencies`.
    
    Es sollte eine `list`e von `Depends()` sein:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="19"
    {!> ../../docs_src/dependencies/tutorial006_an_py39.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/dependencies/classes-as-dependencies.md

    ```Python hl_lines="11 12 13 14 15"
    {!../../docs_src/dependencies/tutorial002.py!}
    ```
    
    クラスのインスタンスを作成するために使用される`__init__`メソッドに注目してください:
    
    ```Python hl_lines="12"
    {!../../docs_src/dependencies/tutorial002.py!}
    ```
    
    ...以前の`common_parameters`と同じパラメータを持っています:
    
    ```Python hl_lines="8"
    {!../../docs_src/dependencies/tutorial001.py!}
    ```
    
    これらのパラメータは **FastAPI** が依存関係を「解決」するために使用するものです。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    ///
    
    ```Python hl_lines="17"
    {!> ../../docs_src/dependencies/tutorial006.py!}
    ```
    
    ////
    
    These dependencies will be executed/solved the same way as normal dependencies. But their value (if they return any) won't be passed to your *path operation function*.
    
    /// tip
    
    Some editors check for unused function parameters, and show them as errors.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top