MCPcopy Index your code
hub / github.com/fastapi/fastapi / get_parameterless_sub_dependant

Function get_parameterless_sub_dependant

fastapi/dependencies/utils.py:123–135  ·  view source on GitHub ↗
(*, depends: params.Depends, path: str)

Source from the content-addressed store, hash-verified

121
122
123def get_parameterless_sub_dependant(*, depends: params.Depends, path: str) -> Dependant:
124 assert callable(depends.dependency), (
125 "A parameter-less dependency must have a callable dependency"
126 )
127 own_oauth_scopes: list[str] = []
128 if isinstance(depends, params.Security) and depends.scopes:
129 own_oauth_scopes.extend(depends.scopes)
130 return get_dependant(
131 path=path,
132 call=depends.dependency,
133 scope=depends.scope,
134 own_oauth_scopes=own_oauth_scopes,
135 )
136
137
138def get_flat_dependant(

Calls 1

get_dependantFunction · 0.85

Tested by

no test coverage detected