MCPcopy
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_typeMethod · 0.80
_check_typeMethod · 0.80
_compare_eq_iterableFunction · 0.80
_compare_eq_mappingFunction · 0.80
_compare_eq_clsFunction · 0.80
safeformatFunction · 0.80

Calls 2

_formatMethod · 0.95
getvalueMethod · 0.45

Tested by 1