improve exception message on duplicate parametrization

Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
This commit is contained in:
Christoph Anton Mitterer 2023-08-06 17:43:37 +02:00
parent 84a342e27c
commit 1cc58ed67f
1 changed files with 1 additions and 1 deletions

View File

@ -1148,7 +1148,7 @@ class CallSpec2:
arg2scope = self._arg2scope.copy()
for arg, val in zip(argnames, valset):
if arg in params or arg in funcargs:
raise ValueError(f"duplicate {arg!r}")
raise ValueError(f"duplicate parametrization of {arg!r}")
valtype_for_arg = valtypes[arg]
if valtype_for_arg == "params":
params[arg] = val