Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 513 for depende (0.04 sec)

  1. tests/test_dependency_yield_scope.py

        yield
        raise HTTPException(status_code=503, detail="Exception after yield")
    
    
    SessionFuncDep = Annotated[Session, Depends(dep_session, scope="function")]
    SessionRequestDep = Annotated[Session, Depends(dep_session, scope="request")]
    SessionDefaultDep = Annotated[Session, Depends(dep_session)]
    
    
    class NamedSession:
        def __init__(self, name: str = "default") -> None:
            self.name = name
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  2. tests/test_dependency_yield_scope_websockets.py

        s.open = False
        global_state = global_context.get()
        global_state["session_closed"] = True
    
    
    SessionFuncDep = Annotated[Session, Depends(dep_session, scope="function")]
    SessionRequestDep = Annotated[Session, Depends(dep_session, scope="request")]
    SessionDefaultDep = Annotated[Session, Depends(dep_session)]
    
    
    class NamedSession:
        def __init__(self, name: str = "default") -> None:
            self.name = name
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. docs/es/docs/advanced/advanced-dependencies.md

    En la versión 0.121.0, FastAPI agregó soporte para `Depends(scope="function")` para dependencias con `yield`.
    
    Usando `Depends(scope="function")`, el código de salida después de `yield` se ejecuta justo después de que la *path operation function* termina, antes de que la response se envíe de vuelta al cliente.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/UpgradeContextTest.java

            assertNotNull(context, "Context should be created");
            assertNotNull(context.options(), "Options should be available");
    
            // Test that icon methods don't throw exceptions
            // (The actual icon choice depends on terminal charset capabilities)
            context.success("Test success message");
            context.failure("Test failure message");
            context.warning("Test warning message");
            context.detail("Test detail message");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Jul 15 09:35:08 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  5. fastapi/dependencies/utils.py

            if isinstance(field_info, FieldInfo):
                field_info.annotation = type_annotation
    
        # Get Depends from type annotation
        if depends is not None and depends.dependency is None:
            # Copy `depends` before mutating it
            depends = copy(depends)
            depends = dataclasses.replace(depends, dependency=type_annotation)
    
        # Handle non-param type annotations like Request
        if lenient_issubclass(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
  6. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeWorkflowIntegrationTest.java

                UpgradeContext context = TestUtils.createMockContext(tempDir);
    
                // Execute apply goal
                applyGoal.execute(context);
    
                // Should handle gracefully (exact behavior depends on implementation)
                // This test mainly verifies no exceptions are thrown
            }
    
            @Test
            @DisplayName("should handle malformed POM gracefully")
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/advanced-dependencies.md

    In version 0.121.0, FastAPI added support for `Depends(scope="function")` for dependencies with `yield`.
    
    Using `Depends(scope="function")`, the exit code after `yield` is executed right after the *path operation function* is finished, before the response is sent back to the client.
    
    And when using `Depends(scope="request")` (the default), the exit code after `yield` is executed after the response is sent.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Nov 13 07:37:15 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectManager.java

        /**
         * Adds the given source to the given project.
         * If a source already exists for the given scope, language and directory,
         * then the behavior depends on the {@code ProjectManager} implementation.
         * It may do nothing or thrown {@linkplain IllegalArgumentException}.
         *
         * @param project the project to update
         * @param source the source to add
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jan 30 23:29:13 UTC 2025
    - 12K bytes
    - Viewed (0)
  9. docs/en/docs/virtual-environments.md

    At some point, you will probably end up writing many different programs that depend on **different packages**. And some of these projects you work on will depend on **different versions** of the same package. 😱
    
    For example, you could create a project called `philosophers-stone`, this program depends on another package called **`harry`, using the version `1`**. So, you need to install `harry`.
    
    ```mermaid
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 02 05:09:25 UTC 2025
    - 22.8K bytes
    - Viewed (0)
  10. tests/test_dependency_wrapped.py

    @app.get("/wrapped-dependency/")
    async def get_wrapped_dependency(value: bool = Depends(wrapped_dependency)):
        return value
    
    
    @app.get("/wrapped-gen-dependency/")
    async def get_wrapped_gen_dependency(value: bool = Depends(wrapped_gen_dependency)):
        return value
    
    
    @app.get("/async-wrapped-dependency/")
    async def get_async_wrapped_dependency(value: bool = Depends(async_wrapped_dependency)):
        return value
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top