mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix type error
This commit is contained in:
@@ -14,6 +14,8 @@ from .._types import MessageTarget
|
|||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class DirEntry:
|
class DirEntry:
|
||||||
|
"""Attaches directory information ot a node."""
|
||||||
|
|
||||||
path: str
|
path: str
|
||||||
is_dir: bool
|
is_dir: bool
|
||||||
loaded: bool = False
|
loaded: bool = False
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ NodeID = NewType("NodeID", int)
|
|||||||
TreeDataType = TypeVar("TreeDataType")
|
TreeDataType = TypeVar("TreeDataType")
|
||||||
EventTreeDataType = TypeVar("EventTreeDataType")
|
EventTreeDataType = TypeVar("EventTreeDataType")
|
||||||
|
|
||||||
LineCacheKey: TypeAlias = tuple[int | tuple, ...]
|
LineCacheKey: TypeAlias = "tuple[int | tuple, ...]"
|
||||||
|
|
||||||
TOGGLE_STYLE = Style.from_meta({"toggle": True})
|
TOGGLE_STYLE = Style.from_meta({"toggle": True})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user