Open Questionsdenombres opened 1 year ago
Thank you for putting the effort in it to describe the issue well!
What do you think about creating a PR?
Whilst it's currently typed as Any/Incomplete
, the typeshed stubs do at least show Workbook.properties
as existing, so it'll pass pyright even in strict mode.
https://github.com/python/typeshed/blob/main/stubs/openpyxl/openpyxl/workbook/workbook.pyi#L43
You can use those stubs from https://pypi.org/project/types-openpyxl/
Environment
python 3.10.8 windows 10 IDE: VScode - python - pyright/pylance - mode strict
Context
A workbook has properties: https://openpyxl.readthedocs.io/en/stable/api/openpyxl.packaging.core.html accessible with
wb.properties
Issue
The property
properties
isn't described in\Python\Python310\Lib\site-packages\openpyxl-stubs\workbook\workbook.pyi
The type checker reports that the property/method is unknown.Thank you for you great software.