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

Function next

mypyc/test-data/fixtures/ir.py:402–402  ·  view source on GitHub ↗
(i: Iterator[_T])

Source from the content-addressed store, hash-verified

400def iter(i: Iterable[_T]) -> Iterator[_T]: pass
401@overload
402def next(i: Iterator[_T]) -> _T: pass
403@overload
404def next(i: Iterator[_T], default: _T) -> _T: pass
405def hash(o: object) -> int: ...

Calls

no outgoing calls

Tested by 3

verify_typeinfoFunction · 0.68
safe_inspect_signatureFunction · 0.68
run_generatorFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…