Path 1: 26 calls (1.0)

dict (19) {'warning': 'red'} (5) {'warning': 'bold yellow'} (1) {'traceback.title': 'rgb(123,234,123)'} (1)

False (16) True (10)

1def __init__(
2        self, styles: Optional[Mapping[str, StyleType]] = None, inherit: bool = True
3    ):
4        self.styles = DEFAULT_STYLES.copy() if inherit else {}
5        if styles is not None:
6            self.styles.update(
7                {
8                    name: style if isinstance(style, Style) else Style.parse(style)
9                    for name, style in styles.items()
10                }
11            )