]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:fire: Remove repeated param declaration (#123)
authoryihuang <yi.codeplayer@gmail.com>
Sat, 30 Mar 2019 17:07:41 +0000 (01:07 +0800)
committerSebastián Ramírez <tiangolo@gmail.com>
Sat, 30 Mar 2019 17:07:41 +0000 (21:07 +0400)
fastapi/dependencies/utils.py

index 157a685c463cd4777a411e5ef650205eac817ad8..86b4ca0058ea98e46fa7756864dc11d6c58aa822 100644 (file)
@@ -100,7 +100,6 @@ def get_dependant(*, path: str, call: Callable, name: str = None) -> Dependant:
                 lenient_issubclass(param.annotation, param_supported_types)
                 or param.annotation == param.empty
             ), f"Path params must be of one of the supported types"
-            param = signature_params[param_name]
             add_param_to_fields(
                 param=param,
                 dependant=dependant,