Fix import of Worksheet from xlsxwriter #18450
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
Issue description
I noticed that pyright was complaining about all occurrences of df.write_excel() because the type of "Worksheet" was unknown. Looks like the Worksheet import in the frame.py module just needs to be imported from xlxswriter's worksheet module instead of the top level xlsxwriter namespace. Also, I'm happy to contribute this fix if needed!
Expected behavior
No pyright errors because it is able to resolve the import.
Installed versions
The text was updated successfully, but these errors were encountered: