fix type error

This commit is contained in:
Will McGugan
2022-11-20 16:55:19 +00:00
parent 4c8eae72a2
commit 62a1dc60cd
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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})