-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
openpyxl Worksheet columns is incorrectly typed #10744
Comments
Looking at the implementation of Worksheet, particularly in the _clean_merge_range method (called by merge_cells), it seems that the Worksheet._cells dict can contain MergedCell instances in addition to Cell instances. Shouldn't columns (and for that matter, all the other methods like cell, getitem, rows, iter_rows/iter_cols that returns things found in _cells) be typed to reflect this? |
Type of internal
|
Property
columns
should return a generator oftuple[Cell]
instead of a singleCell
.This is a very similar issue to #9904, except for
column
.The text was updated successfully, but these errors were encountered: