-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
openpyxl: Workbook opened in readonly mode should return ReadOnlyCell | EmptyCell
from worksheet.rows
#9940
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
Comments
The problem is that And
So, we don't have enough typing information right now to make this work. Ideas? |
Could we use https://mypy.readthedocs.io/en/stable/literal_types.html#literal-types |
Yes, seems ok to me :) |
@sobolevn I'll aim to take a look 👍🏼 |
Do note that this problem goes one step further: |
Currently the type hints for
worksheet.rows
returnsCell
objects. However, opening a workbook in readonly mode results inReadOnlyCell
orEmptyCell
objects being returned.The text was updated successfully, but these errors were encountered: