Skip to content

Commit

Permalink
Improve xrandom validate function docstring [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Apr 25, 2024
1 parent d559cd6 commit 91604ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cylc/flow/xtriggers/xrandom.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,12 @@ def xrandom(


def validate(args: Dict[str, Any]):
"""Validate and manipulate args parsed from the workflow config.
"""Validate the args that xrandom is called with.
Cylc calls this function automatically when parsing the workflow.
Here we specify the rules for args are:
The rules for args are:
* percent: Must be 0 ≤ x ≤ 100
* secs: Must be an integer.
"""
Expand Down

0 comments on commit 91604ac

Please sign in to comment.