mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Improve the docstring for TreeNode.set_label
This commit is contained in:
@@ -254,7 +254,7 @@ class TreeNode(Generic[TreeDataType]):
|
||||
"""Set a new label for the node.
|
||||
|
||||
Args:
|
||||
label: A str or Text object with the new label.
|
||||
label: A ``str`` or ``Text`` object with the new label.
|
||||
"""
|
||||
self._updates += 1
|
||||
text_label = self._tree.process_label(label)
|
||||
|
||||
Reference in New Issue
Block a user