Skip to content

Commit

Permalink
Another attemtpt to fix mypy error in remote env
Browse files Browse the repository at this point in the history
  • Loading branch information
DevChima committed Feb 26, 2025
1 parent 2571ac2 commit 6cd5eec
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 @@ -276,7 +276,7 @@ def read_xlsx(file_content: bytes) -> Iterator[dict[str, Any]]:
workbook = load_workbook(BytesIO(file_content), read_only=True, data_only=True)
worksheet = get_active_sheet(workbook)

first_row = next(worksheet.iter_rows(max_row=1, values_only=True))
first_row = list(next(worksheet.iter_rows(max_row=1, values_only=True)))
header = [clean_excel_cell(cell) if cell else None for cell in first_row]
header = remove_trailing_nones(header)

Expand Down

0 comments on commit 6cd5eec

Please sign in to comment.