Skip to content

Commit 977b3da

Browse files
simonjayhawkinsAlexKirko
authored andcommitted
TYP: misc typing cleanups for pandas-dev#32911 (pandas-dev#35954)
1 parent c565b1c commit 977b3da

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pandas/io/excel/_odswriter.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def write_cells(
4242
sheet_name: Optional[str] = None,
4343
startrow: int = 0,
4444
startcol: int = 0,
45-
freeze_panes: Optional[List] = None,
45+
freeze_panes: Optional[Tuple[int, int]] = None,
4646
) -> None:
4747
"""
4848
Write the frame cells using odf
@@ -215,14 +215,17 @@ def _process_style(self, style: Dict[str, Any]) -> str:
215215
self.book.styles.addElement(odf_style)
216216
return name
217217

218-
def _create_freeze_panes(self, sheet_name: str, freeze_panes: List[int]) -> None:
219-
"""Create freeze panes in the sheet
218+
def _create_freeze_panes(
219+
self, sheet_name: str, freeze_panes: Tuple[int, int]
220+
) -> None:
221+
"""
222+
Create freeze panes in the sheet.
220223
221224
Parameters
222225
----------
223226
sheet_name : str
224227
Name of the spreadsheet
225-
freeze_panes : list
228+
freeze_panes : tuple of (int, int)
226229
Freeze pane location x and y
227230
"""
228231
from odf.config import (

0 commit comments

Comments
 (0)