Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pytest-dev/pytest
/ pformat
Method
pformat
src/_pytest/_io/pprint.py:89–92 ·
view source on GitHub ↗
(self, object: Any)
Source
from the content-addressed store, hash-verified
87
self._width = width
88
89
def
pformat(self, object: Any) -> str:
90
sio = _StringIO()
91
self._format(object, sio, 0, 0, set(), 0)
92
return
sio.getvalue()
93
94
def
_format(
95
self,
Callers
7
_check_type
Method · 0.80
_check_type
Method · 0.80
_compare_eq_iterable
Function · 0.80
_compare_eq_mapping
Function · 0.80
_compare_eq_cls
Function · 0.80
safeformat
Function · 0.80
test_consistent_pretty_printer
Function · 0.80
Calls
2
_format
Method · 0.95
getvalue
Method · 0.45
Tested by
1
test_consistent_pretty_printer
Function · 0.64