Skip to content

Depends

fast_depends.use.Depends #

Depends(
    dependency: Callable[P, T],
    *,
    use_cache: bool = True,
    cast: bool = True
) -> Any
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,
    )

Last update: 2023-11-13