extend_dependencies
faststream.broker.core.abc.extend_dependencies #
extend_dependencies(extra: Sequence[CallModel[Any, Any]], dependant: CallModel[Any, Any]) -> CallModel[Any, Any]
Extends the dependencies of a function or FastAPI dependency.
PARAMETER | DESCRIPTION |
---|---|
extra | Additional dependencies to be added. |
dependant | The function or FastAPI dependency whose dependencies will be extended. |
RETURNS | DESCRIPTION |
---|---|
CallModel[Any, Any] | The updated function or FastAPI dependency. |