Skip to content

Commit 1e6b54d

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

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
18+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1919

2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v3
23+
uses: actions/setup-python@v5.4.0
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626
- name: Install dependencies

treelib/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ def paste(self, nid: str, new_tree, deep: bool = False):
742742
self.__update_bpointer(new_tree.root, nid)
743743
self.__update_fpointer(nid, new_tree.root, self.node_class.ADD)
744744

745-
def paths_to_leaves(self) -> list[list[str]]:
745+
def paths_to_leaves(self):
746746
"""
747747
Use this function to get the identifiers allowing to go from the root
748748
nodes to each leaf.

0 commit comments

Comments
 (0)