We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6f1865 commit a2b1398Copy full SHA for a2b1398
workflow/decoder.py
@@ -38,9 +38,9 @@ def validate_schema(workflow: dict[str, Any]) -> str | None:
38
return None
39
40
41
-def get_step_names(definition: dict[str, Any]) -> set[str]:
42
- """Given a Workflow definition this function returns the unique list of its
+def get_step_names(definition: dict[str, Any]) -> list[str]:
+ """Given a Workflow definition this function returns the list of
43
step names, in the order they are defined.
44
"""
45
- names: set[str] = {step["name"] for step in definition.get("steps", [])}
+ names: list[str] = [step["name"] for step in definition.get("steps", [])]
46
return names
0 commit comments