Improve the docstring for TreeNode.set_label

This commit is contained in:
Dave Pearson
2023-03-01 13:31:39 +00:00
parent 2e060c07d7
commit acb1cc61fc

View File

@@ -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)