Skip to content

Commit 96e387d

Browse files
committed
fix typing
1 parent d530ec7 commit 96e387d

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/forestly/exporters/reactable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,5 +277,5 @@ def _build_reactable(
277277

278278
# Enable pagination for sub rows
279279
reactable_args["paginate_sub_rows"] = True
280-
281-
return Reactable(**reactable_args) # pyre-ignore[6]: External library type definition issue
280+
# pyre-ignore[6]: External library type definition issue
281+
return Reactable(**reactable_args)

src/forestly/panels/base.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,11 @@ def get_width_list(self, count: int) -> list[int | None]:
8989
List of width values or None values
9090
"""
9191
if self.width is None:
92-
return [ # pyre-ignore[7]: List[None] is compatible with List[Optional[int]]
93-
None
94-
] * count
92+
# pyre-ignore[7]: List[int] is compatible with List[Optional[int]]
93+
return [None] * count
9594
if isinstance(self.width, int):
96-
return [ # pyre-ignore[7]: List[int] is compatible with List[Optional[int]]
97-
self.width
98-
] * count
95+
# pyre-ignore[7]: List[int] is compatible with List[Optional[int]]
96+
return [self.width] * count
9997
# Ensure list has correct length
10098
result: list[int | None] = list(self.width)
10199
if len(result) < count:

0 commit comments

Comments
 (0)