mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge branch 'main' into tree-node-children-prop
This commit is contained in:
@@ -2,13 +2,8 @@ import pytest
|
||||
from textual.widgets import Tree, TreeNode
|
||||
|
||||
def label_of(node: TreeNode[None]):
|
||||
"""Get the label of a node.
|
||||
|
||||
TODO: This is just a helper function to reduce the number of type
|
||||
errors, which can and will be remove once this code is merged with a
|
||||
version of main that also has the TreeNode.label PR merged.
|
||||
"""
|
||||
return str(node._label)
|
||||
"""Get the label of a node as a string"""
|
||||
return str(node.label)
|
||||
|
||||
|
||||
def test_tree_node_children() -> None:
|
||||
|
||||
Reference in New Issue
Block a user