Path 1: 19 calls (1.0)

Theme (19)

True (19)

ThemeContext (19)

1def use_theme(self, theme: Theme, *, inherit: bool = True) -> ThemeContext:
2        """Use a different theme for the duration of the context manager.
3
4        Args:
5            theme (Theme): Theme instance to user.
6            inherit (bool, optional): Inherit existing console styles. Defaults to True.
7
8        Returns:
9            ThemeContext: [description]
10        """
11        return ThemeContext(self, theme, inherit)