MCPcopy Index your code
hub / github.com/python/cpython / __repr__

Method __repr__

Lib/doctest.py:119–127  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117 return results
118
119 def __repr__(self):
120 if self.skipped:
121 return (f'TestResults(failed={self.failed}, '
122 f'attempted={self.attempted}, '
123 f'skipped={self.skipped})')
124 else:
125 # Leave the repr() unchanged for backward compatibility
126 # if skipped is zero
127 return super().__repr__()
128
129
130# There are 4 basic classes:

Callers

nothing calls this directly

Calls 2

superClass · 0.85
__repr__Method · 0.45

Tested by

no test coverage detected