Skip to content

Commit 6978f80

Browse files
committed
Formatting
1 parent 1e5851b commit 6978f80

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/textual/command.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,9 @@ class SimpleCommand(NamedTuple):
330330
"""The description of the command."""
331331

332332

333-
CommandListItem: TypeAlias = "SimpleCommand | tuple[str, IgnoreReturnCallbackType, str | None] | tuple[str, IgnoreReturnCallbackType]"
333+
CommandListItem: TypeAlias = (
334+
"SimpleCommand | tuple[str, IgnoreReturnCallbackType, str | None] | tuple[str, IgnoreReturnCallbackType]"
335+
)
334336

335337

336338
class SimpleProvider(Provider):

src/textual/widgets/_data_table.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@
3535
CellCacheKey: TypeAlias = (
3636
"tuple[RowKey, ColumnKey, Style, bool, bool, bool, int, PseudoClasses]"
3737
)
38-
LineCacheKey: TypeAlias = "tuple[int, int, int, int, Coordinate, Coordinate, Style, CursorType, bool, int, PseudoClasses]"
39-
RowCacheKey: TypeAlias = "tuple[RowKey, int, Style, Coordinate, Coordinate, CursorType, bool, bool, int, PseudoClasses]"
38+
LineCacheKey: TypeAlias = (
39+
"tuple[int, int, int, int, Coordinate, Coordinate, Style, CursorType, bool, int, PseudoClasses]"
40+
)
41+
RowCacheKey: TypeAlias = (
42+
"tuple[RowKey, int, Style, Coordinate, Coordinate, CursorType, bool, bool, int, PseudoClasses]"
43+
)
4044
CursorType = Literal["cell", "row", "column", "none"]
4145
"""The valid types of cursors for [`DataTable.cursor_type`][textual.widgets.DataTable.cursor_type]."""
4246
CellType = TypeVar("CellType")

0 commit comments

Comments
 (0)