-
Notifications
You must be signed in to change notification settings - Fork 216
Open
astral-sh/ruff
#22317Description
Summary
from itertools import pairwise
foo: list[int] = [0, 1, 2, 3]
for a, b in pairwise(foo):
reveal_type(a) # Revealed type: `Unknown` (revealed-type) [Ln 5, Col 17]
reveal_type(b) # Revealed type: `Unknown` (revealed-type) [Ln 6, Col 17]Running mypy on the same program reveals ints as I would expect.
Version
0.0.14
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels