Skip to content

Commit

Permalink
fix: type annotation for PipelineStep init to accept a union of itera…
Browse files Browse the repository at this point in the history
…bles
  • Loading branch information
ewagner-verta committed Aug 29, 2023
1 parent 93df142 commit 0c04859
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/verta/verta/pipeline/_pipeline_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ class PipelineGraph:
Set of PipelineSteps comprising all possible steps in this PiplineGraph.
"""

def __init__(self, steps: Set[PipelineStep]):
def __init__(
self, steps: Union[List[PipelineStep], Set[PipelineStep], Tuple[PipelineStep]]
):
self._steps = self._validate_steps(steps)
for step in self._steps:
step._validate_predecessors(step.predecessors)
Expand Down

2 comments on commit 0c04859

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docker Tag: VRD-894_pipelines_CRUD-2023-08-29T17-39-03--0c04859

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Total coverage (common): 15.14
Total coverage (server): 61.32

Changed Files coverage (common): coverage 100
Changed Files coverage (server): 100

Please sign in to comment.