Skip to content

Commit 988b2a0

Browse files
alejoe91zm711
andauthored
Apply suggestions from code review
Co-authored-by: Zach McKenzie <92116279+zm711@users.noreply.github.com>
1 parent 964f8dc commit 988b2a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/spikeinterface/core/node_pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def find_parent_of_type(list_of_parents, parent_type):
438438
----------
439439
list_of_parents : list of PipelineNode
440440
List of parents to search through.
441-
parent_type : type
441+
parent_type : type | tuple of types
442442
The type of parent to search for.
443443
444444
Returns
@@ -503,7 +503,7 @@ def check_graph(nodes):
503503
assert parent in nodes, f"Node {node} has parent {parent} that was not passed in nodes"
504504
assert (
505505
nodes.index(parent) < i
506-
), f"Node are ordered incorrectly: {node} before {parent} in the pipeline definition."
506+
), f"Nodes are ordered incorrectly: {node} before {parent} in the pipeline definition."
507507

508508
return nodes
509509

0 commit comments

Comments
 (0)