callable(a1, ..., an, r) constructs a callable with argument types a1, ... an and return type r.
(self, *a: Type)
| 1118 | return Instance(self.fx.std_tuplei, [t]) |
| 1119 | |
| 1120 | def callable(self, *a: Type) -> CallableType: |
| 1121 | """callable(a1, ..., an, r) constructs a callable with argument types |
| 1122 | a1, ... an and return type r. |
| 1123 | """ |
| 1124 | n = len(a) - 1 |
| 1125 | return CallableType(list(a[:-1]), [ARG_POS] * n, [None] * n, a[-1], self.fx.function) |
| 1126 | |
| 1127 | def type_callable(self, *a: Type) -> CallableType: |
| 1128 | """type_callable(a1, ..., an, r) constructs a callable with |
no test coverage detected