Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for __anext__ (0.04 seconds)

  1. tests/test_dependency_class.py

    
    @app.get("/async-callable-gen-dependency-class")
    async def get_async_callable_gen_dependency_class(
        value: str, instance: AsyncCallableGenDependency = Depends()
    ):
        return await instance(value).__anext__()
    
    
    @app.get("/callable-dependency")
    async def get_callable_dependency(value: str = Depends(callable_dependency)):
        return value
    
    
    @app.get("/callable-gen-dependency")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  2. fastapi/routing.py

                        # `__anext__` directly - avoiding CancelledError that
                        # would finalize the generator and also working for sync
                        # generators running in a thread pool.
                        #
                        # This context manager is entered on the request-scoped
                        # AsyncExitStack so its __aexit__ (which cancels the
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
Back to Top