apply_types
fast_depends.use.inject #
inject(
func: Optional[Callable[P, T]] = None,
*,
dependency_overrides_provider: Optional[
Any
] = dependency_provider,
extra_dependencies: Sequence[model.Depends] = (),
wrap_model: Callable[
[CallModel[P, T]], CallModel[P, T]
] = lambda: x,
cast: bool = True
) -> Union[Callable[P, T], _InjectWrapper[P, T]]
Source code in fast_depends/use.py
Last update: 2023-11-13