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

Method repr

src/_pytest/_code/code.py:172–174  ·  view source on GitHub ↗

Return a 'safe' (non-recursive, one-line) string repr for 'object'.

(self, object: object)

Source from the content-addressed store, hash-verified

170 return eval(code, self.f_globals, f_locals)
171
172 def repr(self, object: object) -> str:
173 """Return a 'safe' (non-recursive, one-line) string repr for 'object'."""
174 return saferepr(object)
175
176 def getargs(self, var: bool = False):
177 """Return a list of tuples (name, value) for all arguments.

Callers

nothing calls this directly

Calls 1

safereprFunction · 0.90

Tested by

no test coverage detected