Path 1: 30 calls (0.94)

'' (10) 'foo' (7) 'ABCD' (6) 'Hello!' (3) Text (1) 'foobarbazeggfoobarbazegg' (1) '欢迎!' (1) 'Bar' (1)

'─' (27) '+*' (2) '.,' (1)

'rule.line' (26) Style (2) None (2)

'\n' (30)

'center' (22) 'left' (4) 'right' (4)

1def __init__(
2        self,
3        title: Union[str, Text] = "",
4        *,
5        characters: str = "─",
6        style: Union[str, Style] = "rule.line",
7        end: str = "\n",
8        align: AlignMethod = "center",
9    ) -> None:
10        if cell_len(characters) < 1:
11            raise ValueError(
12                "'characters' argument must have a cell width of at least 1"
13            )
14        if align not in ("left", "center", "right"):
15            raise ValueError(
16                f'invalid value for align, expected "left", "center", "right" (not {align!r})'
17            )
18        self.title = title
19        self.characters = characters
20        self.style = style
21        self.end = end
22        self.align = align
            

Path 2: 1 calls (0.03)

'foo' (1)

'─' (1)

'rule.line' (1)

'\n' (1)

'foo' (1)

ValueError (1)

1def __init__(
2        self,
3        title: Union[str, Text] = "",
4        *,
5        characters: str = "─",
6        style: Union[str, Style] = "rule.line",
7        end: str = "\n",
8        align: AlignMethod = "center",
9    ) -> None:
10        if cell_len(characters) < 1:
11            raise ValueError(
12                "'characters' argument must have a cell width of at least 1"
13            )
14        if align not in ("left", "center", "right"):
15            raise ValueError(
16                f'invalid value for align, expected "left", "center", "right" (not {align!r})'
17            )
18        self.title = title
19        self.characters = characters
20        self.style = style
21        self.end = end
22        self.align = align
            

Path 3: 1 calls (0.03)

'' (1)

'' (1)

'rule.line' (1)

'\n' (1)

'center' (1)

ValueError (1)

1def __init__(
2        self,
3        title: Union[str, Text] = "",
4        *,
5        characters: str = "─",
6        style: Union[str, Style] = "rule.line",
7        end: str = "\n",
8        align: AlignMethod = "center",
9    ) -> None:
10        if cell_len(characters) < 1:
11            raise ValueError(
12                "'characters' argument must have a cell width of at least 1"
13            )
14        if align not in ("left", "center", "right"):
15            raise ValueError(
16                f'invalid value for align, expected "left", "center", "right" (not {align!r})'
17            )
18        self.title = title
19        self.characters = characters
20        self.style = style
21        self.end = end
22        self.align = align