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

Method __repr__

src/_pytest/python_api.py:246–249  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

244 with numeric values (the keys can be anything)."""
245
246 def __repr__(self) -> str:
247 return "approx({!r})".format(
248 {k: self._approx_scalar(v) for k, v in self.expected.items()}
249 )
250
251 def _repr_compare(self, other_side: Mapping[object, float]) -> List[str]:
252 import math

Callers

nothing calls this directly

Calls 2

_approx_scalarMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected