From: Bloodielie <49410211+Bloodielie@users.noreply.github.com> Date: Mon, 3 Aug 2020 08:32:06 +0000 (+0300) Subject: ♻ Refactor and merge for loops in dependant creation (#1714) X-Git-Tag: 0.60.2~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b344cc9415a600a816f004a26e4f9dd48bc5dcf6;p=thirdparty%2Ffastapi%2Ffastapi.git ♻ Refactor and merge for loops in dependant creation (#1714) Co-authored-by: Sebastián Ramírez --- diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index a09ad25121..1526547bf2 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -285,8 +285,6 @@ def get_dependant( param=param, path=path, security_scopes=security_scopes ) dependant.dependencies.append(sub_dependant) - for param_name, param in signature_params.items(): - if isinstance(param.default, params.Depends): continue if add_non_field_param_to_dependency(param=param, dependant=dependant): continue