Skip to content

Commit 60439c2

Browse files
committed
Fix various static typing issues.
1 parent a669398 commit 60439c2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

colour_datasets/utilities/spreadsheet.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242

4343
# https://stackoverflow.com/questions/64264563/\
4444
# attributeerror-elementtree-object-has-no-attribute-getiterator-when-trying
45-
xlrd.xlsx.ensure_elementtree_imported(False, None)
46-
xlrd.xlsx.Element_has_iter = True
45+
xlrd.xlsx.ensure_elementtree_imported(False, None) # pyright: ignore
46+
xlrd.xlsx.Element_has_iter = True # pyright: ignore
4747

4848

4949
def _column_number_to_letters(number: int) -> str:
@@ -238,7 +238,9 @@ def cell_range_values(sheet: xlrd.sheet.Sheet, cell_range: str) -> List[str]:
238238

239239
for row in range(row_in, row_out + 1, 1):
240240
table.append( # noqa: PERF401
241-
sheet.row_values(row, start_colx=column_in, end_colx=column_out + 1)
241+
sheet.row_values( # pyright: ignore
242+
row, start_colx=column_in, end_colx=column_out + 1
243+
)
242244
)
243245

244246
return table

0 commit comments

Comments
 (0)