Skip to content

Commit 9effd9b

Browse files
committed
remove list[str] in node to be compatible with pre py3.8
1 parent 1e6b54d commit 9effd9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

treelib/node.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def set_predecessor(self, nid: Optional[str], tree_id: Optional[str]) -> None:
143143
"""Set the value of `_predecessor`."""
144144
self._predecessor[tree_id] = nid
145145

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

0 commit comments

Comments
 (0)