Skip to content

forbid arument duplications

David Schäfer requested to merge duplicated-args into develop

Currently we allow function to pass the same argument as a positional and a keyword argument. So we allow, something like:

qc.interpolateIndex("data", "10Min", freq="10min", method="linear")

The second positional argument to interpolateIndex is called freq. Instead we now fail with:

TypeError: SaQC.interpolateIndex() got multiple values for argument 'freq'

as Python function usually behave.

Merge request reports