Closed
Description
The following was fine with mypy until types-openpyxl-3.1.5.20241114
:
next(wb[sheet].iter_rows(...)
But when I upgraded to types-openpyxl-3.1.5.20241126
I have the following error:
error: Argument 1 to "next" has incompatible type "Generator[tuple[Cell | MergedCell, ...], None, None] | Generator[tuple[str | float | datetime | None, ...], None, None]"; expected "SupportsNext[tuple[str | float | datetime | int | None | Cell, ...]]" [arg-type]
I do not understand why a Generator is not considered as SupportsNext ?
Metadata
Metadata
Assignees
Labels
No labels