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

Method __repr__

Lib/typing.py:1652–1659  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1650
1651class _CallableGenericAlias(_NotIterable, _GenericAlias, _root=True):
1652 def __repr__(self):
1653 assert self._name == 'Callable'
1654 args = self.__args__
1655 if len(args) == 2 and _is_param_expr(args[0]):
1656 return super().__repr__()
1657 return (f'typing.Callable'
1658 f'[[{", ".join([_type_repr(a) for a in args[:-1]])}], '
1659 f'{_type_repr(args[-1])}]')
1660
1661 def __reduce__(self):
1662 args = self.__args__

Callers

nothing calls this directly

Calls 5

superClass · 0.85
_type_reprFunction · 0.85
_is_param_exprFunction · 0.70
__repr__Method · 0.45
joinMethod · 0.45

Tested by

no test coverage detected