Path 1: 20 calls (1.0)

Theme (20)

True (20)

1def push_theme(self, theme: Theme, inherit: bool = True) -> None:
2        """Push a theme on the top of the stack.
3
4        Args:
5            theme (Theme): A Theme instance.
6            inherit (boolean, optional): Inherit styles from current top of stack.
7        """
8        styles: Dict[str, Style]
9        styles = (
10            {**self._entries[-1], **theme.styles} if inherit else theme.styles.copy()
11        )
12        self._entries.append(styles)
13        self.get = self._entries[-1].get