Remove TreeNode as a pseudo-widget

This encourages importing it from `textual.widgets.tree` instead, keeping it
in line with the other changes made for #1637.

Note this is a breaking change.
This commit is contained in:
Dave Pearson
2023-01-23 17:37:58 +00:00
parent d4c71588a7
commit 4adfe69ec9
6 changed files with 7 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
import pytest
from textual.widgets import Tree, TreeNode
from textual.widgets import Tree
from textual.widgets.tree import TreeNode
def label_of(node: TreeNode[None]):

View File

@@ -1,4 +1,5 @@
from textual.widgets import Tree, TreeNode
from textual.widgets import Tree
from textual.widgets.tree import TreeNode
from rich.text import Text

View File

@@ -1,4 +1,4 @@
from textual.widgets import TreeNode, Tree
from textual.widgets import Tree
def test_tree_node_parent() -> None: