Skip to content

Commit

Permalink
Why type ignore (mypy)
Browse files Browse the repository at this point in the history
  • Loading branch information
DevChima committed Feb 27, 2025
1 parent 54ea0e1 commit df59179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/import_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def read_xlsx(file_content: bytes) -> Iterator[dict[str, Any]]:
header = remove_trailing_nones(header)

for row in worksheet.iter_rows(min_row=2, values_only=True):
row = remove_trailing_nones(row) # type: ignore
row = remove_trailing_nones(row) # type: ignore # Mypy cannot guarantee row is a list; rows may be tuples so we bypass.
r = {}
if len(row) > len(header):
raise ImportException(
Expand Down

0 comments on commit df59179

Please sign in to comment.