MCPcopy
hub / github.com/pytest-dev/pytest / _pprint_mappingproxy

Method _pprint_mappingproxy

src/_pytest/_io/pprint.py:352–363  ·  view source on GitHub ↗
(
        self,
        object: Any,
        stream: IO[str],
        indent: int,
        allowance: int,
        context: set[int],
        level: int,
    )

Source from the content-addressed store, hash-verified

350 _dispatch[bytearray.__repr__] = _pprint_bytearray
351
352 def _pprint_mappingproxy(
353 self,
354 object: Any,
355 stream: IO[str],
356 indent: int,
357 allowance: int,
358 context: set[int],
359 level: int,
360 ) -> None:
361 stream.write("mappingproxy(")
362 self._format(object.copy(), stream, indent, allowance, context, level)
363 stream.write(")")
364
365 _dispatch[_types.MappingProxyType.__repr__] = _pprint_mappingproxy
366

Callers

nothing calls this directly

Calls 3

_formatMethod · 0.95
copyMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected