-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TYP: Add types for excel writer classes #45246
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
Conversation
pandas/io/excel/_odswriter.py
Outdated
@@ -8,7 +8,7 @@ | |||
) | |||
|
|||
import pandas._libs.json as json | |||
from pandas._typing import StorageOptions | |||
from pandas._typing import StorageOptions, FilePath, WriteExcelBuffer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isort complaints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had some issues with pre commit yesterday, will fix
pandas/io/excel/_openpyxl.py
Outdated
@@ -453,6 +459,8 @@ def write_cells( | |||
self.sheets[sheet_name] = wks | |||
|
|||
if validate_freeze_panes(freeze_panes): | |||
# for mypy | |||
assert freeze_panes is not None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if its been discussed, but i think we should move away from the assert-for-mypy pattern, since with cast/ignore mypy will alert us when it is no longer necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will use cast then
No description provided.