Skip to content

Type hint error #1291

@anci3ntr0ck

Description

@anci3ntr0ck

The type hint of _Row.cells() is wrong.
image
Tuple[_Cell] means there is only one _Cell object in tuple, so when I try to get the 2nd, 3rd _Cell object, Pylance tells me there is a IndexError.
image
Change the type hint to Tuple[_Cell, ...] should fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions