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

Class list

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

Source from the content-addressed store, hash-verified

244class function: pass
245
246class list(Generic[_T], Sequence[_T], Iterable[_T]):
247 def __init__(self, i: Optional[Iterable[_T]] = None) -> None: pass
248 @overload
249 def __getitem__(self, i: int) -> _T: ...
250 @overload
251 def __getitem__(self, s: slice) -> List[_T]: ...
252 def __setitem__(self, i: int, o: _T) -> None: pass
253 def __delitem__(self, i: int) -> None: pass
254 def __mul__(self, i: int) -> List[_T]: pass
255 def __rmul__(self, i: int) -> List[_T]: pass
256 def __imul__(self, i: int) -> List[_T]: ...
257 def __iter__(self) -> Iterator[_T]: pass
258 def __len__(self) -> int: pass
259 def __contains__(self, item: object) -> int: ...
260 @overload
261 def __add__(self, value: List[_T], /) -> List[_T]: ...
262 @overload
263 def __add__(self, value: List[_S], /) -> List[_S | _T]: ...
264 def __iadd__(self, value: Iterable[_T], /) -> List[_T]: ... # type: ignore[misc]
265 def append(self, x: _T) -> None: pass
266 def pop(self, i: int = -1) -> _T: pass
267 def count(self, x: _T) -> int: pass
268 def extend(self, l: Iterable[_T]) -> None: pass
269 def insert(self, i: int, x: _T) -> None: pass
270 def sort(self) -> None: pass
271 def reverse(self) -> None: pass
272 def remove(self, o: _T) -> None: pass
273 def index(self, o: _T) -> int: pass
274 def clear(self) -> None: pass
275 def copy(self) -> List[_T]: pass
276
277class dict(Mapping[_K, _V]):
278 @overload

Callers 15

expand_typevarsMethod · 0.85
check_init_subclassMethod · 0.85
visit_match_stmtMethod · 0.85
detach_callableFunction · 0.85
get_package_propertiesFunction · 0.85
solve_with_dependentFunction · 0.85
solve_oneFunction · 0.85
compute_dependenciesFunction · 0.85

Calls

no outgoing calls

Tested by 15

test_moduleFunction · 0.68
test_topsort_emptyMethod · 0.68
test_topsortMethod · 0.68
test_topsort_orphanMethod · 0.68
test_topsort_cycleMethod · 0.68
test_order_asccMethod · 0.68
listdirMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…