Open mutricyl opened 6 months ago
It's actually Worksheet | WriteOnlyWorksheet | ReadOnlyWorksheet | Chartsheet
since it depends on the type of worksheets your workbook has (and whether it's readonly/writeonly).
Even worst: ReadOnlyWorksheet
doesn't even subclass _WorkbookChild
!
This was recently solve for https://pypi.org/project/types-openpyxl/ in https://github.com/python/typeshed/pull/11718
Hello
looking at
workbook.workbook.pyi
it looks likeactive
property returnNone
or_WorkbookChild
however looking at openpyxl code :return value is either of type
Workbook
orNone
Am I reading the code correctly ?
When I write:
mypy complains :
error: Value of type "_WorkbookChild" is not indexable [index]