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

Method __repr__

src/_pytest/_code/code.py:221–222  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

219 return self.lineno - self.frame.code.firstlineno
220
221 def __repr__(self) -> str:
222 return "<TracebackEntry %s:%d>" % (self.frame.code.path, self.lineno + 1)
223
224 @property
225 def statement(self) -> "Source":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected