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
| Name | Type | Description |
|---|---|---|
| depends | params.Depends | The dependency object, which must have a callable 'dependency' attribute. This object defines the dependency to be processed. |
| path | str | The path associated with the dependency, used when constructing the Dependant object. |
Returns
| Type | Description |
|---|---|
Dependant | A Dependant object representing the processed dependency. |