great-tables icon indicating copy to clipboard operation
great-tables copied to clipboard

Decouple Stub responsibilities from Boxhead ones

Open rich-iannone opened this issue 1 year ago • 0 comments

Currently the Boxhead uses the Stub in only one method. If we remove that dependency, it will be much more that the Stub drives the Boxhead. In the rendering code, we look at both the Boxhead and the Stub, when we could instead just use the Boxhead.

There are a few ways to decouple the Stub from the Boxhead:

  • _get_effective_number_of_columns() method of Boxhead could instead be replaced use final_columns()
  • enumerate where final_columns() should be used in the rendering code

rich-iannone avatar Nov 21 '24 18:11 rich-iannone