MCPcopy
hub / github.com/python/mypy / tuple

Class tuple

mypyc/test-data/fixtures/ir.py:228–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226 def __xor__(self, n: int) -> int: ...
227
228class tuple(Generic[T_co], Sequence[T_co], Iterable[T_co]):
229 def __init__(self, i: Iterable[T_co]) -> None: pass
230 @overload
231 def __getitem__(self, i: int) -> T_co: pass
232 @overload
233 def __getitem__(self, i: slice) -> Tuple[T_co, ...]: pass
234 def __len__(self) -> int: pass
235 def __iter__(self) -> Iterator[T_co]: ...
236 def __contains__(self, item: object) -> int: ...
237 @overload
238 def __add__(self, value: Tuple[T_co, ...], /) -> Tuple[T_co, ...]: ...
239 @overload
240 def __add__(self, value: Tuple[_T, ...], /) -> Tuple[T_co | _T, ...]: ...
241 def __mul__(self, value: int, /) -> Tuple[T_co, ...]: ...
242 def __rmul__(self, value: int, /) -> Tuple[T_co, ...]: ...
243
244class function: pass
245

Callers 15

setup.pyFile · 0.85
split_for_callableMethod · 0.85
options.pyFile · 0.85
__init__Method · 0.85
compute_search_pathsFunction · 0.85
on_finishMethod · 0.85
on_finishMethod · 0.85

Calls

no outgoing calls

Tested by 3

verify_paramspecexprFunction · 0.68
setUpMethod · 0.68
run_generatorFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…