]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
♻ Refactor and merge for loops in dependant creation (#1714)
authorBloodielie <49410211+Bloodielie@users.noreply.github.com>
Mon, 3 Aug 2020 08:32:06 +0000 (11:32 +0300)
committerGitHub <noreply@github.com>
Mon, 3 Aug 2020 08:32:06 +0000 (10:32 +0200)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
fastapi/dependencies/utils.py

index a09ad2512134bd3df8cc84ebda1379a07ceb0b54..1526547bf20fd90e8d336b7f8aae728538f6e7fd 100644 (file)
@@ -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