Skip to content

Commit a2b1398

Browse files
author
Alan Christie
committed
feat: Decoder now returns step names as a list
1 parent c6f1865 commit a2b1398

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

workflow/decoder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def validate_schema(workflow: dict[str, Any]) -> str | None:
3838
return None
3939

4040

41-
def get_step_names(definition: dict[str, Any]) -> set[str]:
42-
"""Given a Workflow definition this function returns the unique list of its
41+
def get_step_names(definition: dict[str, Any]) -> list[str]:
42+
"""Given a Workflow definition this function returns the list of
4343
step names, in the order they are defined.
4444
"""
45-
names: set[str] = {step["name"] for step in definition.get("steps", [])}
45+
names: list[str] = [step["name"] for step in definition.get("steps", [])]
4646
return names

0 commit comments

Comments
 (0)