Skip to content

Conversation

@phofl
Copy link
Member

@phofl phofl commented Jan 7, 2022

No description provided.


import pandas._libs.json as json
from pandas._typing import StorageOptions
from pandas._typing import StorageOptions, FilePath, WriteExcelBuffer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isort complaints

Copy link
Member Author

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


if validate_freeze_panes(freeze_panes):
# for mypy
assert freeze_panes is not None
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will use cast then

@jreback jreback added IO Excel read_excel, to_excel Typing type annotations, mypy/pyright type checking labels Jan 8, 2022
@jreback jreback added this to the 1.5 milestone Jan 10, 2022
@jreback jreback merged commit d3c62ad into pandas-dev:master Jan 10, 2022
@phofl phofl deleted the typ_excel branch January 28, 2022 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

IO Excel read_excel, to_excel Typing type annotations, mypy/pyright type checking

4 participants