Skip to content

Commit

Permalink
remove list[str] in node to be compatible with pre py3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
caesar0301 committed Mar 1, 2025
1 parent 1e6b54d commit 9effd9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion treelib/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def set_predecessor(self, nid: Optional[str], tree_id: Optional[str]) -> None:
"""Set the value of `_predecessor`."""
self._predecessor[tree_id] = nid

def successors(self, tree_id: Optional[str]) -> list[str]:
def successors(self, tree_id: Optional[str]):
"""
With a getting operator, a list of IDs of node's children is obtained. With
a setting operator, the value can be list, set, or dict. For list or set,
Expand Down

0 comments on commit 9effd9b

Please sign in to comment.