Hi,
i am implementing a tool to merge worksheets.
So basically I am reading from a couple of worksheets (from different workbooks) and writing everything to another worksheet in another workbook?
While trying to implement i had to take some journeys into the source code of openpyxl because i was often running into bush of ValueErrors raised individually from different places due to mismatches of the worksheet parent workbook. Why is it necessary to check? what are the expected issues?
I wonder if im missing somehting since i mostly just monkey patched the checks and everything worked as expected™.
I'm didn't dive very deep yet so excuse my naive question. I guess it has to do with the matter that the parent instance contains stuff like the styles,tables. etc.
So another question araises at my head: why those attributes are not in the worksheet directly by rather linked there from the workbook instance?
I choose to monkey patch the WorksheetCopy class but i think the right solution would be to write a proper __copy__ in the WorkSheet class. I didn't tried that because i think this would require a design change as implied by my last question.
Just to clarify I'm not flaming I'm asking out of honest curiosity