Skip to content

Commit 6dd3538

Browse files
committed
linting
1 parent 0035fd0 commit 6dd3538

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/zenml/zen_stores/schemas/pipeline_run_schemas.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import json
1717
from datetime import datetime
18-
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence
18+
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Set
1919
from uuid import UUID
2020

2121
from pydantic import ConfigDict
@@ -747,7 +747,7 @@ def _check_if_run_in_progress(self) -> bool:
747747
steps.append(step)
748748

749749
# Build a reverse DAG (step_name -> list of downstream steps)
750-
reverse_dag = {}
750+
reverse_dag: Dict[str, List[str]] = {}
751751
for step in steps:
752752
step_name = step.config.name
753753
reverse_dag[step_name] = []
@@ -772,8 +772,17 @@ def _check_if_run_in_progress(self) -> bool:
772772

773773
# Recursively find all downstream steps of failed steps
774774
def find_all_downstream_steps(
775-
step_name: str, visited: set
776-
) -> set:
775+
step_name: str, visited: Set[str]
776+
) -> Set[str]:
777+
"""Find all downstream steps of a given step.
778+
779+
Args:
780+
step_name: The name of the step to find the downstream steps of.
781+
visited: The set of steps that have already been visited.
782+
783+
Returns:
784+
The set of downstream steps.
785+
"""
777786
if step_name in visited:
778787
return set()
779788
visited.add(step_name)

0 commit comments

Comments
 (0)