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
incorrect inferred type accessing typed dict with static keys #19961
In this case, because the keys are explicitly typed as Literals, mypy infers the correct type.
This suggests that mypy is not analyzing constant tuples deeply enough to recognize the accessed keys.
Your Environment
Mypy version used: mypy 1.18.2 (compiled: yes)
Mypy command-line flags: None
Mypy configuration options from mypy.ini (and other config files): I can reproduce it in an environment without any extra configuration.
Activity
ayushjariyal commentedon Oct 6, 2025
@yabirgb, I want to work on this issue. Could you please assign it to me?