Add a docstring for TreeNode.data

This commit is contained in:
Dave Pearson
2023-03-01 13:27:16 +00:00
parent 3192ee7402
commit 3658610792

View File

@@ -100,6 +100,7 @@ class TreeNode(Generic[TreeDataType]):
self._id = id
self._label = tree.process_label(label)
self.data = data
"""Optional data associated with the tree node."""
self._expanded = expanded
self._children: list[TreeNode[TreeDataType]] = []