Skip to content

Commit

Permalink
fix ancestors bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorStoneAstro committed Oct 21, 2024
1 parent 0b99e8a commit 85c94b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/caskade/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def topological_ordering(self, with_type: Optional[str] = None) -> tuple["Node"]
def ancestors(self, with_type: Optional[str] = None) -> set["Node"]:
"""Return all ancestors of the current node."""
ancestors = set()
for node in self.ancestors:
for node in self.parents:
ancestors.add(node)
for subnode in node.ancestors(with_type):
ancestors.add(subnode)
Expand Down

0 comments on commit 85c94b8

Please sign in to comment.