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

Method var_tuple

mypy/test/testtypes.py:1116–1118  ·  view source on GitHub ↗

Construct a variable-length tuple type

(self, t: Type)

Source from the content-addressed store, hash-verified

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"""
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

Callers 2

test_tuplesMethod · 0.95
test_var_tuplesMethod · 0.95

Calls 1

InstanceClass · 0.90

Tested by

no test coverage detected