Skip to content

TYP: misc typing cleanups for #32911 #35954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions pandas/io/excel/_odswriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def write_cells(
sheet_name: Optional[str] = None,
startrow: int = 0,
startcol: int = 0,
freeze_panes: Optional[List] = None,
freeze_panes: Optional[Tuple[int, int]] = None,
) -> None:
"""
Write the frame cells using odf
Expand Down Expand Up @@ -215,14 +215,17 @@ def _process_style(self, style: Dict[str, Any]) -> str:
self.book.styles.addElement(odf_style)
return name

def _create_freeze_panes(self, sheet_name: str, freeze_panes: List[int]) -> None:
"""Create freeze panes in the sheet
def _create_freeze_panes(
self, sheet_name: str, freeze_panes: Tuple[int, int]
) -> None:
"""
Create freeze panes in the sheet.

Parameters
----------
sheet_name : str
Name of the spreadsheet
freeze_panes : list
freeze_panes : tuple of (int, int)
Freeze pane location x and y
"""
from odf.config import (
Expand Down