Add __slots__ to third-party packages using stubdefaulter (#14619)

This commit is contained in:
Jelle Zijlstra
2025-08-21 15:38:13 -07:00
committed by GitHub
parent 573b57d8da
commit ca44e4c45d
135 changed files with 675 additions and 25 deletions
+13
View File
@@ -42,6 +42,7 @@ cellty_from_fmtty: Final[dict[int, int]]
ctype_text: Final[dict[int, str]]
class Cell(BaseObject):
__slots__ = ["ctype", "value", "xf_index"]
ctype: int
value: str
xf_index: int | None
@@ -58,6 +59,18 @@ class Colinfo(BaseObject):
collapsed: int
class Rowinfo(BaseObject):
__slots__ = (
"height",
"has_default_height",
"outline_level",
"outline_group_starts_ends",
"hidden",
"height_mismatch",
"has_default_xf_index",
"xf_index",
"additional_space_above",
"additional_space_below",
)
height: int | None
has_default_height: int | None
outline_level: int | None