MCPcopy Create free account
hub / github.com/pytest-dev/pytest / _pformat_dispatch

Function _pformat_dispatch

src/_pytest/_io/saferepr.py:143–153  ·  view source on GitHub ↗
(
    object: object,
    indent: int = 1,
    width: int = 80,
    depth: Optional[int] = None,
    *,
    compact: bool = False,
)

Source from the content-addressed store, hash-verified

141
142
143def _pformat_dispatch(
144 object: object,
145 indent: int = 1,
146 width: int = 80,
147 depth: Optional[int] = None,
148 *,
149 compact: bool = False,
150) -> str:
151 return AlwaysDispatchingPrettyPrinter(
152 indent=indent, width=width, depth=depth, compact=compact
153 ).pformat(object)

Callers 2

_compare_eq_iterableFunction · 0.90
test_pformat_dispatchFunction · 0.90

Calls 1

Tested by 1

test_pformat_dispatchFunction · 0.72