mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Document NodeID
It's in the public interface for tree, so it should be documented.
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
::: textual.widgets.Tree
|
||||
::: textual.widgets._tree.TreeNode
|
||||
::: textual.widgets._tree.NodeID
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user