Skip to content

Commit

Permalink
remove stray walrus
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Feb 18, 2025
1 parent aa549e6 commit 8440029
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cylc/flow/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2289,10 +2289,12 @@ def check_outputs(self, terminals: Iterable[str]) -> None:
Raises: WorkflowConfigError if a custom output is not defined.
"""
# TODO (On drop 3.7): Can be simplified with walrus :=
# if (b := a[1].strip("?")) not in TASK_QUALIFIERS
terminal_outputs = [
(a[0].strip("!"), b)
(a[0].strip("!"), a[1].strip("?"))
for a in (t.split(':') for t in terminals if ":" in t)
if (b := a[1].strip("?")) not in TASK_QUALIFIERS
if (a[1].strip("?")) not in TASK_QUALIFIERS
]

for task, output in terminal_outputs:
Expand Down

0 comments on commit 8440029

Please sign in to comment.