MCPcopy Index your code
hub / github.com/RustPython/RustPython / __repr__

Method __repr__

Lib/unittest/mock.py:2704–2722  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2702 return self._get_call_arguments()[1]
2703
2704 def __repr__(self):
2705 if not self._mock_from_kall:
2706 name = self._mock_name or 'call'
2707 if name.startswith('()'):
2708 name = 'call%s' % name
2709 return name
2710
2711 if len(self) == 2:
2712 name = 'call'
2713 args, kwargs = self
2714 else:
2715 name, args, kwargs = self
2716 if not name:
2717 name = 'call'
2718 elif not name.startswith('()'):
2719 name = 'call.%s' % name
2720 else:
2721 name = 'call%s' % name
2722 return _format_call_signature(name, args, kwargs)
2723
2724
2725 def call_list(self):

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
_format_call_signatureFunction · 0.85
startswithMethod · 0.45

Tested by

no test coverage detected