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

Method __repr__

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

Source from the content-addressed store, hash-verified

1614
1615class _CallableGenericAlias(_NotIterable, _GenericAlias, _root=True):
1616 def __repr__(self):
1617 assert self._name == 'Callable'
1618 args = self.__args__
1619 if len(args) == 2 and _is_param_expr(args[0]):
1620 return super().__repr__()
1621 return (f'typing.Callable'
1622 f'[[{", ".join([_type_repr(a) for a in args[:-1]])}], '
1623 f'{_type_repr(args[-1])}]')
1624
1625 def __reduce__(self):
1626 args = self.__args__

Callers

nothing calls this directly

Calls 6

lenFunction · 0.85
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