|
35 | 35 | CellCacheKey: TypeAlias = ( |
36 | 36 | "tuple[RowKey, ColumnKey, Style, bool, bool, bool, int, PseudoClasses]" |
37 | 37 | ) |
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 | | -) |
| 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]" |
44 | 40 | CursorType = Literal["cell", "row", "column", "none"] |
45 | 41 | """The valid types of cursors for [`DataTable.cursor_type`][textual.widgets.DataTable.cursor_type].""" |
46 | 42 | CellType = TypeVar("CellType") |
@@ -1160,6 +1156,9 @@ def watch_fixed_columns(self) -> None: |
1160 | 1156 | def watch_zebra_stripes(self) -> None: |
1161 | 1157 | self._clear_caches() |
1162 | 1158 |
|
| 1159 | + def watch_header_height(self) -> None: |
| 1160 | + self._clear_caches() |
| 1161 | + |
1163 | 1162 | def validate_cell_padding(self, cell_padding: int) -> int: |
1164 | 1163 | return max(cell_padding, 0) |
1165 | 1164 |
|
|
0 commit comments