mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add a docstring for TreeNode.data
This commit is contained in:
@@ -100,6 +100,7 @@ class TreeNode(Generic[TreeDataType]):
|
|||||||
self._id = id
|
self._id = id
|
||||||
self._label = tree.process_label(label)
|
self._label = tree.process_label(label)
|
||||||
self.data = data
|
self.data = data
|
||||||
|
"""Optional data associated with the tree node."""
|
||||||
self._expanded = expanded
|
self._expanded = expanded
|
||||||
self._children: list[TreeNode[TreeDataType]] = []
|
self._children: list[TreeNode[TreeDataType]] = []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user