Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for get_callable_dependency (0.14 sec)

  1. tests/test_dependency_class.py

    async_callable_dependency = AsyncCallableDependency()
    async_callable_gen_dependency = AsyncCallableGenDependency()
    methods_dependency = MethodsDependency()
    
    
    @app.get("/callable-dependency")
    async def get_callable_dependency(value: str = Depends(callable_dependency)):
        return value
    
    
    @app.get("/callable-gen-dependency")
    async def get_callable_gen_dependency(value: str = Depends(callable_gen_dependency)):
        return value
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Aug 09 10:54:05 UTC 2020
    - 3.3K bytes
    - Viewed (0)
Back to top