MCPcopy Index your code
hub / github.com/python/mypy / tuple

Method tuple

mypy/test/testtypes.py:1386–1387  ·  view source on GitHub ↗
(self, *a: Type)

Source from the content-addressed store, hash-verified

1384 assert is_subtype(result, t), f"{result} not subtype of {t}"
1385
1386 def tuple(self, *a: Type) -> TupleType:
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

Callers 6

test_tuplesMethod · 0.95
test_noneMethod · 0.95
test_unbound_typeMethod · 0.95
test_dynamic_typeMethod · 0.95
test_simple_genericsMethod · 0.95

Calls 2

TupleTypeClass · 0.90
listClass · 0.85

Tested by

no test coverage detected