def _insert_section(cell_object: CellObject, section: Section) -> None: section_type = section.type # Fix the chart name if section_type == 'chart': section_type = section.layout['chartType'] + '_chart' section.type = section_type insert_by_type(section_type, cell_object, section)
def _insert_section(self, cell_object: CellObject, section: Section) -> None: section_type = section.type # Fix the chart name if section_type == 'chart': section_type = section.layout['chartType'] + '_chart' section.type = section_type insert_by_type(section_type, cell_object, section, trace=self.options.get('trace', False))