Skip to content

Commit 08f2836

Browse files
committed
remove stray walrus
1 parent 1e59531 commit 08f2836

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cylc/flow/config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,10 +2289,12 @@ def check_outputs(self, terminals: Iterable[str]) -> None:
22892289
22902290
Raises: WorkflowConfigError if a custom output is not defined.
22912291
"""
2292+
# TODO (On drop 3.7): Can be simplified with walrus :=
2293+
# if (b := a[1].strip("?")) not in TASK_QUALIFIERS
22922294
terminal_outputs = [
2293-
(a[0].strip("!"), b)
2295+
(a[0].strip("!"), a[1].strip("?"))
22942296
for a in (t.split(':') for t in terminals if ":" in t)
2295-
if (b := a[1].strip("?")) not in TASK_QUALIFIERS
2297+
if (a[1].strip("?")) not in TASK_QUALIFIERS
22962298
]
22972299

22982300
for task, output in terminal_outputs:

0 commit comments

Comments
 (0)