From b344cc9415a600a816f004a26e4f9dd48bc5dcf6 Mon Sep 17 00:00:00 2001 From: Bloodielie <49410211+Bloodielie@users.noreply.github.com> Date: Mon, 3 Aug 2020 11:32:06 +0300 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=20Refactor=20and=20merge=20for=20loop?= =?UTF-8?q?s=20in=20dependant=20creation=20(#1714)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sebastián Ramírez --- fastapi/dependencies/utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index a09ad2512..1526547bf 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