mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-07 08:35:52 -04:00
🔥 Remove repeated param declaration (#123)
This commit is contained in:
committed by
Sebastián Ramírez
parent
5a3cf863da
commit
f806ba642a
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user