Path 1: 2 calls (0.67)

1def add_section(self) -> None:
2        """Add a new section (draw a line after current row)."""
3
4        if self.rows:
5            self.rows[-1].end_section = True
            

Path 2: 1 calls (0.33)

1def add_section(self) -> None:
2        """Add a new section (draw a line after current row)."""
3
4        if self.rows:
5            self.rows[-1].end_section = True