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

Method __repr__

Lib/_collections_abc.py:485–491  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

483 return super().__new__(cls, origin, args)
484
485 def __repr__(self):
486 if len(self.__args__) == 2 and _is_param_expr(self.__args__[0]):
487 return super().__repr__()
488 from annotationlib import type_repr
489 return (f'collections.abc.Callable'
490 f'[[{", ".join([type_repr(a) for a in self.__args__[:-1]])}], '
491 f'{type_repr(self.__args__[-1])}]')
492
493 def __reduce__(self):
494 args = self.__args__

Callers

nothing calls this directly

Calls 5

type_reprFunction · 0.90
superClass · 0.85
_is_param_exprFunction · 0.70
__repr__Method · 0.45
joinMethod · 0.45

Tested by

no test coverage detected