Correct the type of the TreeExpanded event

This looks to have been a slight typing bug all along.
This commit is contained in:
Dave Pearson
2023-05-02 15:29:36 +01:00
parent 16931a8563
commit d0639a0cc1

View File

@@ -182,7 +182,7 @@ class DirectoryTree(Tree[DirEntry]):
def _on_mount(self, _: Mount) -> None:
self.load_directory(self.root)
def _on_tree_node_expanded(self, event: Tree.NodeSelected) -> None:
def _on_tree_node_expanded(self, event: Tree.NodeExpanded) -> None:
event.stop()
dir_entry = event.node.data
if dir_entry is None: