Skip to main content

get_parameterless_sub_dependant

Builds a Dependant object for a parameter-less dependency, extracting necessary information such as the callable dependency, scope, and OAuth scopes from the provided depends object.

def get_parameterless_sub_dependant(
depends: params.Depends,
path: str
) - > Dependant

Constructs a Dependant object for a parameter-less dependency. This function is used internally to process dependencies that do not require specific parameters from the request, such as security dependencies.

Parameters​

NameTypeDescription
dependsparams.DependsThe dependency object, which must have a callable 'dependency' attribute. This object defines the dependency to be processed.
pathstrThe path associated with the dependency, used when constructing the Dependant object.

Returns​

TypeDescription
DependantA Dependant object representing the processed dependency.