Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 541 - 550 of 586 for dependency (0.06 seconds)

  1. docs_src/dependencies/tutorial008_py39.py

    from fastapi import Depends
    
    
    async def dependency_a():
        dep_a = generate_dep_a()
        try:
            yield dep_a
        finally:
            dep_a.close()
    
    
    async def dependency_b(dep_a=Depends(dependency_a)):
        dep_b = generate_dep_b()
        try:
            yield dep_b
        finally:
            dep_b.close(dep_a)
    
    
    async def dependency_c(dep_b=Depends(dependency_b)):
        dep_c = generate_dep_c()
        try:
            yield dep_c
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 455 bytes
    - Click Count (0)
  2. docs_src/dependencies/tutorial008_an_py39.py

    from fastapi import Depends
    
    
    async def dependency_a():
        dep_a = generate_dep_a()
        try:
            yield dep_a
        finally:
            dep_a.close()
    
    
    async def dependency_b(dep_a: Annotated[DepA, Depends(dependency_a)]):
        dep_b = generate_dep_b()
        try:
            yield dep_b
        finally:
            dep_b.close(dep_a)
    
    
    async def dependency_c(dep_b: Annotated[DepB, Depends(dependency_b)]):
        dep_c = generate_dep_c()
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 521 bytes
    - Click Count (0)
  3. RELEASE.md

    Weweler, Zantares, zjjott, 卜居, 王振华 (Wang Zhenhua), 黄鑫
    
    # Release 1.12.3
    
    ## Bug Fixes and Other Changes
    
    *   Updates `png_archive` dependency to 1.6.37 to not be affected by
        CVE-2019-7317, CVE-2018-13785, and CVE-2018-14048.
    *   Updates `sqlite` dependency to 3.28.0 to not be affected by CVE-2018-20506,
        CVE-2018-20346, and CVE-2018-20505.
    
    # Release 1.12.2
    
    ## Bug Fixes and Other Changes
    
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Tue Oct 28 22:27:41 GMT 2025
    - 740.4K bytes
    - Click Count (3)
  4. fastapi/routing.py

                if not response_awaited:
                    raise FastAPIError(
                        "Response not awaited. There's a high chance that the "
                        "application code is raising an exception and a dependency with yield "
                        "has a block with a bare except, or a block with except Exception, "
                        "and is not raising the exception again. Read more about it in the "
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 174.6K bytes
    - Click Count (0)
  5. tensorflow/c/c_api_test.cc

      TF_DeleteBuffer(graph_def);
      graph_def = TF_NewBuffer();
      TF_GraphToGraphDef(graph, graph_def, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      // Import again, with remapped control dependency, into the same graph
      TF_DeleteImportGraphDefOptions(opts);
      opts = TF_NewImportGraphDefOptions();
      TF_ImportGraphDefOptionsSetPrefix(opts, "imported4");
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Mon Nov 17 00:00:38 GMT 2025
    - 97K bytes
    - Click Count (0)
  6. tensorflow/c/c_api.h

    TF_CAPI_EXPORT extern void TF_ImportGraphDefOptionsRemapControlDependency(
        TF_ImportGraphDefOptions* opts, const char* src_name, TF_Operation* dst);
    
    // Cause the imported graph to have a control dependency on `oper`. `oper`
    // should exist in the graph being imported into.
    TF_CAPI_EXPORT extern void TF_ImportGraphDefOptionsAddControlDependency(
        TF_ImportGraphDefOptions* opts, TF_Operation* oper);
    
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Click Count (0)
  7. doc/go_spec.html

    Import declaration          Local name of Sin
    
    import   "lib/math"         math.Sin
    import m "lib/math"         m.Sin
    import . "lib/math"         Sin
    </pre>
    
    <p>
    An import declaration declares a dependency relation between
    the importing and imported package.
    It is illegal for a package to import itself, directly or indirectly,
    or to directly import a package without
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 02 23:07:19 GMT 2025
    - 286.5K bytes
    - Click Count (1)
  8. docs/es/docs/tutorial/security/simple-oauth2.md

    ### `OAuth2PasswordRequestForm` { #oauth2passwordrequestform }
    
    Primero, importa `OAuth2PasswordRequestForm`, y úsalo como una dependencia con `Depends` en la *path operation* para `/token`:
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[4,78] *}
    
    `OAuth2PasswordRequestForm` es una dependencia de clase que declara un body de formulario con:
    
    * El `username`.
    * El `password`.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  9. docs/pt/docs/tutorial/security/simple-oauth2.md

    ### `OAuth2PasswordRequestForm` { #oauth2passwordrequestform }
    
    Primeiro, importe `OAuth2PasswordRequestForm` e use-o como uma dependência com `Depends` na *operação de rota* para `/token`:
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[4,78] *}
    
    `OAuth2PasswordRequestForm` é uma dependência de classe que declara um corpo de formulário com:
    
    * O `username`.
    * A `password`.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_dependencies/test_tutorial008.py

        mod = importlib.import_module(mod_name)
        return mod
    
    
    def test_get_db(module: ModuleType):
        app = FastAPI()
    
        @app.get("/")
        def read_root(c: Annotated[Any, Depends(module.dependency_c)]):
            return {"c": str(c)}
    
        client = TestClient(app)
    
        a_mock = Mock()
        b_mock = Mock()
        c_mock = Mock()
    
        with (
            patch(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 1.4K bytes
    - Click Count (0)
Back to Top