Document NodeID

It's in the public interface for tree, so it should be documented.
This commit is contained in:
Dave Pearson
2023-03-01 13:23:28 +00:00
parent ac35c1d1d5
commit dbb52637c5
2 changed files with 3 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
::: textual.widgets.Tree
::: textual.widgets._tree.TreeNode
::: textual.widgets._tree.NodeID

View File

@@ -26,6 +26,8 @@ if TYPE_CHECKING:
from typing_extensions import TypeAlias
NodeID = NewType("NodeID", int)
"""The type of an ID applied to a [TreeNode][textual.widgets._tree.TreeNode]."""
TreeDataType = TypeVar("TreeDataType")
EventTreeDataType = TypeVar("EventTreeDataType")