mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Document TreeDataType
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
::: textual.widgets.Tree
|
||||
::: textual.widgets._tree.TreeNode
|
||||
::: textual.widgets._tree.NodeID
|
||||
::: textual.widgets._tree.TreeDataType
|
||||
|
||||
@@ -29,6 +29,8 @@ NodeID = NewType("NodeID", int)
|
||||
"""The type of an ID applied to a [TreeNode][textual.widgets._tree.TreeNode]."""
|
||||
|
||||
TreeDataType = TypeVar("TreeDataType")
|
||||
"""The type of the data for a given instance of a [Tree][textual.widgets.Tree]."""
|
||||
|
||||
EventTreeDataType = TypeVar("EventTreeDataType")
|
||||
|
||||
LineCacheKey: TypeAlias = "tuple[int | tuple, ...]"
|
||||
|
||||
Reference in New Issue
Block a user