From: yihuang Date: Sat, 30 Mar 2019 17:07:41 +0000 (+0800) Subject: :fire: Remove repeated param declaration (#123) X-Git-Tag: 0.10.3~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f806ba642a24497e5fa693afa59b5752eeb1afae;p=thirdparty%2Ffastapi%2Ffastapi.git :fire: Remove repeated param declaration (#123) --- diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index 157a685c46..86b4ca0058 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -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,