You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unpacking a NamedTuple in a dictionary index loses type information #5630
ERROR Cannot index into `dict[tuple[str, int, int], str]` [bad-index] Argument `tuple[*tuple[int | str, ...], Literal[0]]` is not assignable to parameter `key` with type `tuple[str, int, int]` in function `dict.__getitem__`
I'd expect all three accesses to be accepted, particularly since unpacking an ordinary tuple already works.
Activity
ImBinarry commentedon Nov 13, 2026
#claim
github-actions commentedon Nov 13, 2026
@ImBinarry you've claimed this issue — it's now assigned to you. Thanks for picking it up! 🎉