Path 1: 19 calls (1.0)

Theme (19)

True (19)

1def push_theme(self, theme: Theme, *, inherit: bool = True) -> None:
2        """Push a new theme on to the top of the stack, replacing the styles from the previous theme.
3        Generally speaking, you should call :meth:`~rich.console.Console.use_theme` to get a context manager, rather
4        than calling this method directly.
5
6        Args:
7            theme (Theme): A theme instance.
8            inherit (bool, optional): Inherit existing styles. Defaults to True.
9        """
10        self._theme_stack.push_theme(theme, inherit=inherit)