Path 1: 153 calls (0.84)

Console (153)

0 (104) 1 (20) 2 (12) 3 (5) 4 (3) 5 (2) 6 (2) 7 (2) 8 (2) 9 (1)

Style (153)

1def get_row_style(self, console: "Console", index: int) -> StyleType:
2        """Get the current row style."""
3        style = Style.null()
4        if self.row_styles:
5            style += console.get_style(self.row_styles[index % len(self.row_styles)])
6        row_style = self.rows[index].style
7        if row_style is not None:
8            style += console.get_style(row_style)
9        return style
            

Path 2: 28 calls (0.15)

Console (28)

0 (9) 1 (9) 2 (9) 3 (1)

Style (28)

1def get_row_style(self, console: "Console", index: int) -> StyleType:
2        """Get the current row style."""
3        style = Style.null()
4        if self.row_styles:
5            style += console.get_style(self.row_styles[index % len(self.row_styles)])
6        row_style = self.rows[index].style
7        if row_style is not None:
8            style += console.get_style(row_style)
9        return style
            

Path 3: 1 calls (0.01)

Console (1)

1 (1)

Style (1)

1def get_row_style(self, console: "Console", index: int) -> StyleType:
2        """Get the current row style."""
3        style = Style.null()
4        if self.row_styles:
5            style += console.get_style(self.row_styles[index % len(self.row_styles)])
6        row_style = self.rows[index].style
7        if row_style is not None:
8            style += console.get_style(row_style)
9        return style