Skip to content

Depends

fast_depends.use.Depends #

Depends(dependency, *, use_cache=True, cast=True)
Source code in fast_depends/use.py
def Depends(
    dependency: Callable[P, T],
    *,
    use_cache: bool = True,
    cast: bool = True,
) -> Any:
    return model.Depends(
        dependency=dependency,
        use_cache=use_cache,
        cast=cast,
    )