3 # Based on http://docs.python.org/2/library/pprint.html
\r
4 # Based on http://docs.python.org/3/library/pprint.html
\r
7 from typing import Any, Dict, Tuple, IO
\r
9 if sys.version_info >= (3, 4):
\r
10 def pformat(o: object, indent: int = ..., width: int = ...,
\r
11 depth: int = ..., compact: bool = ...) -> str: ...
\r
13 def pformat(o: object, indent: int = ..., width: int = ...,
\r
14 depth: int = ...) -> str: ...
\r
16 if sys.version_info >= (3, 4):
\r
17 def pprint(o: object, stream: IO[str] = ..., indent: int = ..., width: int = ...,
\r
18 depth: int = ..., compact: bool = ...) -> None: ...
\r
20 def pprint(o: object, stream: IO[str] = ..., indent: int = ..., width: int = ...,
\r
21 depth: int = ...) -> None: ...
\r
23 def isreadable(o: object) -> bool: ...
\r
24 def isrecursive(o: object) -> bool: ...
\r
25 def saferepr(o: object) -> str: ...
\r
27 class PrettyPrinter:
\r
28 if sys.version_info >= (3, 4):
\r
29 def __init__(self, indent: int = ..., width: int = ..., depth: int = ...,
\r
30 stream: IO[str] = ..., compact: bool = ...) -> None: ...
\r
32 def __init__(self, indent: int = ..., width: int = ..., depth: int = ...,
\r
33 stream: IO[str] = ...) -> None: ...
\r
35 def pformat(self, o: object) -> str: ...
\r
36 def pprint(self, o: object) -> None: ...
\r
37 def isreadable(self, o: object) -> bool: ...
\r
38 def isrecursive(self, o: object) -> bool: ...
\r
39 def format(self, o: object, context: Dict[int, Any], maxlevels: int,
\r
40 level: int) -> Tuple[str, bool, bool]: ...
\r