You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Worksheet's row_dimensions raises a Warning when I put an integer in it (for the index of the row to change the height of) although it works (height is changed and script runs correctly).
MRE:
importopenpyxlfromopenpyxl.worksheet.worksheetimportWorksheet# Load an existing workbook or create a new onewb=openpyxl.load_workbook('your_workbook.xlsx')
ws: Worksheet=wb.active# Set the height of row 1 to 25ws.row_dimensions[1].height=25<--problem# Save the changes back to the workbookwb.save('your_workbook.xlsx')
I'm using Python 3.11.1 and the latest version of openpyxl (3.1.2).
Openpyxl type-hinting Issue
Worksheet's
row_dimensions
raises a Warning when I put an integer in it (for the index of the row to change the height of) although it works (height is changed and script runs correctly).MRE:
I'm using
Python 3.11.1
and the latest version of openpyxl (3.1.2
).Source of the problem: https://github.com/python/typeshed/tree/ff946a734909f62ec3880cf7c9bbbd0339914081/stubs/openpyxl
StackOverflow: https://stackoverflow.com/questions/78358388/worksheet-row-dimensions-type-hinting-does-not-work-properly
The text was updated successfully, but these errors were encountered: