Format: application/octet-stream
1 import sys
2 from typing import IO, Any, Dict, Optional, Tuple
3
4 if sys.version_info >= (3, 8):
5 def pformat(
6 object: object,
7 indent: int = ...,
8 width: int = ...,
9 depth: Optional[int] = ...,
10 *,
11 compact: bool = ...,
12 sort_dicts: bool = ...,
13 ) -> str: ...
14
15 elif sys.version_info >= (3, 4):
16 def pformat(
17 object: object, indent: int = ..., width: int = ..., depth: Optional[int] = ..., *, compact: bool = ...
18 ) -> str: ...
19
20 else:
21 def pformat(object: object, indent: int = ..., width: int = ..., depth: Optional[int] = ...) -> str: ...
22
23 if sys.version_info >= (3, 8):
24 def pp(
25 object: object,
26 stream: Optional[IO[str]] = ...,
27 indent: int = ...,
28 width: int = ...,
29 depth: Optional[int] = ...,
30 *,
31 compact: bool = ...,
32 sort_dicts: bool = ...,
33 ) -> None: ...
34
35 if sys.version_info >= (3, 8):
36 def pprint(
37 object: object,
38 stream: Optional[IO[str]] = ...,
39 indent: int = ...,
40 width: int = ...,
41 depth: Optional[int] = ...,
42 *,
43 compact: bool = ...,
44 sort_dicts: bool = ...,
45 ) -> None: ...
46
47 elif sys.version_info >= (3, 4):
48 def pprint(
49 object: object,
50 stream: Optional[IO[str]] = ...,
51 indent: int = ...,
52 width: int = ...,
53 depth: Optional[int] = ...,
54 *,
55 compact: bool = ...,
56 ) -> None: ...
57
58 else:
59 def pprint(
60 object: object, stream: Optional[IO[str]] = ..., indent: int = ..., width: int = ..., depth: Optional[int] = ...
61 ) -> None: ...
62
63 def isreadable(object: object) -> bool: ...
64 def isrecursive(object: object) -> bool: ...
65 def saferepr(object: object) -> str: ...
66
67 class PrettyPrinter:
68 if sys.version_info >= (3, 8):
69 def __init__(
70 self,
71 indent: int = ...,
72 width: int = ...,
73 depth: Optional[int] = ...,
74 stream: Optional[IO[str]] = ...,
75 *,
76 compact: bool = ...,
77 sort_dicts: bool = ...,
78 ) -> None: ...
79 elif sys.version_info >= (3, 4):
80 def __init__(
81 self,
82 indent: int = ...,
83 width: int = ...,
84 depth: Optional[int] = ...,
85 stream: Optional[IO[str]] = ...,
86 *,
87 compact: bool = ...,
88 ) -> None: ...
89 else:
90 def __init__(
91 self, indent: int = ..., width: int = ..., depth: Optional[int] = ..., stream: Optional[IO[str]] = ...
92 ) -> None: ...
93 def pformat(self, object: object) -> str: ...
94 def pprint(self, object: object) -> None: ...
95 def isreadable(self, object: object) -> bool: ...
96 def isrecursive(self, object: object) -> bool: ...
97 def format(self, object: object, context: Dict[int, Any], maxlevels: int, level: int) -> Tuple[str, bool, bool]: ...
98