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