Skip to content

Commit 7264486

Browse files
Update ontograph/queries/relations.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1d0a461 commit 7264486

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ontograph/queries/relations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def is_sibling(self, nodeA: str, nodeB: str) -> bool:
101101
logger.error(f'Error checking sibling relationship: {e}')
102102
raise
103103

104-
def _get_distance_to_ancestor(self, node: str, ancestor: str) -> bool:
104+
def _get_distance_to_ancestor(self, node: str, ancestor: str) -> int | float:
105105
"""Calculate the shortest distance from a node to a specified ancestor.
106106
107107
Args:

0 commit comments

Comments
 (0)