mirror of
https://github.com/fastapi/fastapi.git
synced 2026-08-07 04:23:32 -04:00
♻ Refactor and merge for loops in dependant creation (#1714)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
1 parent
38b71a9298
commit
b344cc9415
1 file changed
-2
@@ -285,8 +285,6 @@ def get_dependant(
|
|||||||
param=param, path=path, security_scopes=security_scopes
|
param=param, path=path, security_scopes=security_scopes
|
||||||
)
|
)
|
||||||
dependant.dependencies.append(sub_dependant)
|
dependant.dependencies.append(sub_dependant)
|
||||||
for param_name, param in signature_params.items():
|
|
||||||
if isinstance(param.default, params.Depends):
|
|
||||||
continue
|
continue
|
||||||
if add_non_field_param_to_dependency(param=param, dependant=dependant):
|
if add_non_field_param_to_dependency(param=param, dependant=dependant):
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in new issue
Block a user