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

Method tuple

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

Source from the content-addressed store, hash-verified

1111 assert is_subtype(t, result), f"{t} not subtype of {result}"
1112
1113 def tuple(self, *a: Type) -> TupleType:
1114 return TupleType(list(a), self.fx.std_tuple)
1115
1116 def var_tuple(self, t: Type) -> Instance:
1117 """Construct a variable-length tuple type"""

Callers 8

test_tuplesMethod · 0.95
test_var_tuplesMethod · 0.95
test_noneMethod · 0.95
test_unbound_typeMethod · 0.95
test_any_typeMethod · 0.95
test_simple_genericsMethod · 0.95

Calls 2

TupleTypeClass · 0.90
listClass · 0.85

Tested by

no test coverage detected