Skip to content
Snippets Groups Projects

forbid arument duplications

Merged David Schäfer requested to merge duplicated-args into develop
All threads resolved!

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Bert Palm approved this merge request

    approved this merge request

  • David Schäfer resolved all threads

    resolved all threads

  • David Schäfer mentioned in commit 14af2ac7

    mentioned in commit 14af2ac7

  • Please register or sign in to reply
    Loading