Path 1: 7 calls (1.0)

(1,) (2) 1 (1) [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] (1) {'foo': 1, 'bar': 2, 'egg': 3} (1) ['HelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHelloHel...

Console (7)

True (7)

None (5) 2 (2)

None (6) 8 (1)

None (7)

False (5) True (2)

1def pprint(
2    _object: Any,
3    *,
4    console: Optional["Console"] = None,
5    indent_guides: bool = True,
6    max_length: Optional[int] = None,
7    max_string: Optional[int] = None,
8    max_depth: Optional[int] = None,
9    expand_all: bool = False,
10) -> None:
11    """A convenience function for pretty printing.
12
13    Args:
14        _object (Any): Object to pretty print.
15        console (Console, optional): Console instance, or None to use default. Defaults to None.
16        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
17            Defaults to None.
18        max_string (int, optional): Maximum length of strings before truncating, or None to disable. Defaults to None.
19        max_depth (int, optional): Maximum depth for nested data structures, or None for unlimited depth. Defaults to None.
20        indent_guides (bool, optional): Enable indentation guides. Defaults to True.
21        expand_all (bool, optional): Expand all containers. Defaults to False.
22    """
23    _console = get_console() if console is None else console
24    _console.print(
25        Pretty(
26            _object,
27            max_length=max_length,
28            max_string=max_string,
29            max_depth=max_depth,
30            indent_guides=indent_guides,
31            expand_all=expand_all,
32            overflow="ignore",
33        ),
34        soft_wrap=True,
35    )