(self)
| 1614 | |
| 1615 | class _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__ |
nothing calls this directly
no test coverage detected