|
1 | 1 | import sys
|
| 2 | +from _typeshed import SupportsWrite |
| 3 | +from collections import deque |
2 | 4 | from typing import IO
|
3 | 5 |
|
4 | 6 | __all__ = ["pprint", "pformat", "isreadable", "isrecursive", "saferepr", "PrettyPrinter", "pp"]
|
@@ -110,3 +112,48 @@ class PrettyPrinter:
|
110 | 112 | def isreadable(self, object: object) -> bool: ...
|
111 | 113 | def isrecursive(self, object: object) -> bool: ...
|
112 | 114 | def format(self, object: object, context: dict[int, int], maxlevels: int, level: int) -> tuple[str, bool, bool]: ...
|
| 115 | + def _format( |
| 116 | + self, object: object, stream: SupportsWrite[str], indent: int, allowance: int, context: dict[int, int], level: int |
| 117 | + ) -> None: ... |
| 118 | + def _pprint_dict( |
| 119 | + self, |
| 120 | + object: dict[object, object], |
| 121 | + stream: SupportsWrite[str], |
| 122 | + indent: int, |
| 123 | + allowance: int, |
| 124 | + context: dict[int, int], |
| 125 | + level: int, |
| 126 | + ) -> None: ... |
| 127 | + def _pprint_list( |
| 128 | + self, object: list[object], stream: SupportsWrite[str], indent: int, allowance: int, context: dict[int, int], level: int |
| 129 | + ) -> None: ... |
| 130 | + def _pprint_tuple( |
| 131 | + self, |
| 132 | + object: tuple[object, ...], |
| 133 | + stream: SupportsWrite[str], |
| 134 | + indent: int, |
| 135 | + allowance: int, |
| 136 | + context: dict[int, int], |
| 137 | + level: int, |
| 138 | + ) -> None: ... |
| 139 | + def _pprint_set( |
| 140 | + self, object: set[object], stream: SupportsWrite[str], indent: int, allowance: int, context: dict[int, int], level: int |
| 141 | + ) -> None: ... |
| 142 | + def _pprint_deque( |
| 143 | + self, object: deque[object], stream: SupportsWrite[str], indent: int, allowance: int, context: dict[int, int], level: int |
| 144 | + ) -> None: ... |
| 145 | + def _format_dict_items( |
| 146 | + self, |
| 147 | + items: list[tuple[object, object]], |
| 148 | + stream: SupportsWrite[str], |
| 149 | + indent: int, |
| 150 | + allowance: int, |
| 151 | + context: dict[int, int], |
| 152 | + level: int, |
| 153 | + ) -> None: ... |
| 154 | + def _format_items( |
| 155 | + self, items: list[object], stream: SupportsWrite[str], indent: int, allowance: int, context: dict[int, int], level: int |
| 156 | + ) -> None: ... |
| 157 | + def _repr(self, object: object, context: dict[int, int], level: int) -> str: ... |
| 158 | + if sys.version_info >= (3, 10): |
| 159 | + def _safe_repr(self, object: object, context: dict[int, int], maxlevels: int, level: int) -> tuple[str, bool, bool]: ... |
0 commit comments