Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for dependency_a (0.15 sec)

  1. docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md

    {!../../docs_src/dependencies/tutorial007.py!}
    ```
    ## 使用 `yield` 的子依赖项
    
    你可以声明任意数量和层级的树状依赖,而且它们中的任何一个或所有的都可以使用 `yield`。
    
    **FastAPI** 会确保每个带有 `yield` 的依赖中的"退出代码"按正确顺序运行。
    
    例如,`dependency_c` 可以依赖于 `dependency_b`,而 `dependency_b` 则依赖于 `dependency_a`。
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="6  14  22"
    {!> ../../docs_src/dependencies/tutorial008_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md

    **FastAPI** は、`yield`を持つ各依存関係の「終了コード」が正しい順番で実行されていることを確認します。
    
    例えば、`dependency_c`は`dependency_b`と`dependency_b`に依存する`dependency_a`に、依存することができます:
    
    ```Python hl_lines="4 12 20"
    {!../../docs_src/dependencies/tutorial008.py!}
    ```
    
    そして、それらはすべて`yield`を使用することができます。
    
    この場合、`dependency_c`は終了コードを実行するために、`dependency_b`(ここでは`dep_b`という名前)の値がまだ利用可能である必要があります。
    
    そして、`dependency_b`は`dependency_a`(ここでは`dep_a`という名前)の値を終了コードで利用できるようにする必要があります。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md

    **FastAPI** будет следить за тем, чтобы "код по выходу" в каждой зависимости с `yield` выполнялся в правильном порядке.
    
    Например, `dependency_c` может иметь зависимость от `dependency_b`, а `dependency_b` от `dependency_a`:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="6  14  22"
    {!> ../../docs_src/dependencies/tutorial008_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.6+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/dependencies/dependencies-with-yield.md

    **FastAPI** stellt sicher, dass der „Exit-Code“ in jeder Abhängigkeit mit `yield` in der richtigen Reihenfolge ausgeführt wird.
    
    Beispielsweise kann `dependency_c` von `dependency_b` und `dependency_b` von `dependency_a` abhängen:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="6  14  22"
    {!> ../../docs_src/dependencies/tutorial008_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    For example, `dependency_c` can have a dependency on `dependency_b`, and `dependency_b` on `dependency_a`:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="6  14  22"
    {!> ../../docs_src/dependencies/tutorial008_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="5  13  21"
    {!> ../../docs_src/dependencies/tutorial008_an.py!}
    ```
    
    ////
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md

    O **FastAPI** garantirá que o "código de saída" em cada dependência com `yield` é executado na ordem correta.
    
    Por exemplo, `dependency_c` pode depender de `dependency_b`, e `dependency_b` depender de `dependency_a`:
    
    //// tab | python 3.9+
    
    ```python hl_lines="6  14  22"
    {!> ../../docs_src/dependencies/tutorial008_an_py39.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractorTest.java

        private Project project;
    
        /**
         * <p>setUp.</p>
         */
        @BeforeEach
        void setUp() {
            Dependency dependency1 = new Dependency();
            dependency1.setArtifactId("dep1");
            Dependency dependency2 = new Dependency();
            dependency2.setArtifactId("dep2");
    
            project = new Project();
            project.setModelVersion("4.0.0");
            project.setGroupId("org.apache.maven");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverRequest.java

            /**
             * Adds the specified direct dependency.
             *
             * @param dependency the dependency to add, may be {@code null}
             * @return this request for chaining, never {@code null}
             */
            @Nonnull
            public DependencyResolverRequestBuilder dependency(@Nullable DependencyCoordinates dependency) {
                if (dependency != null) {
                    if (this.dependencies.isEmpty()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Oct 16 14:15:37 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java

                                    "Cannot resolve",
                                    dependency.getGroupId(),
                                    dependency.getArtifactId(),
                                    dependency.getVersion());
                    }
                }
            });
    
            ModelBuildingResult result = builder.build(request);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelResolver.java

            }
        }
    
        @Override
        public ModelSource resolveModel(final Dependency dependency, AtomicReference<Dependency> modified)
                throws UnresolvableModelException {
            try {
                final Artifact artifact = new DefaultArtifact(
                        dependency.getGroupId(), dependency.getArtifactId(), "", "pom", dependency.getVersion());
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top