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

Method __reduce__

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

Source from the content-addressed store, hash-verified

491 f'{type_repr(self.__args__[-1])}]')
492
493 def __reduce__(self):
494 args = self.__args__
495 if not (len(args) == 2 and _is_param_expr(args[0])):
496 args = list(args[:-1]), args[-1]
497 return _CallableGenericAlias, (Callable, args)
498
499 def __getitem__(self, item):
500 # Called during TypeVar substitution, returns the custom subclass

Callers

nothing calls this directly

Calls 2

listClass · 0.85
_is_param_exprFunction · 0.70

Tested by

no test coverage detected