Expand `Parameter.from_shorthand` capabilities

  • Use a dict for Parameter.SHORTHAND_MODES, this is faster and easier to adapt.
  • Adds is-negative-or-zero and is-positive-or-zero shorthands

Can this MR be accepted?

  • Implementation ready
  • Tests added or adjusted
  • Documentation updated
    • docstrings
    • added a separate cfg/parameter docs page
  • Code quality
    • Changes follow coding guidelines
    • Checked code coverage on new and adjusted code
      • Drops by 0.03% because the number of statements is reduced (which were all tested)
  • Ready for merging
    • Pipeline passes without warnings
    • History cleaned-up or squash option set
    • Changelog entry added
    • Version number bumped (not necessary)
Edited by Yunus Sevinchan

Merge request reports

Loading