callable(a1, ..., an, r) constructs a callable with argument types a1, ... an and return type r.
(self, *a: Type)
| 1387 | return TupleType(list(a), self.fx.std_tuple) |
| 1388 | |
| 1389 | def callable(self, *a: Type) -> CallableType: |
| 1390 | """callable(a1, ..., an, r) constructs a callable with argument types |
| 1391 | a1, ... an and return type r. |
| 1392 | """ |
| 1393 | n = len(a) - 1 |
| 1394 | return CallableType(list(a[:-1]), [ARG_POS] * n, [None] * n, a[-1], self.fx.function) |
| 1395 | |
| 1396 | |
| 1397 | class SameTypeSuite(Suite): |
no test coverage detected