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
TypedDict union assignment error doesn't identify the invalid tag #5771
Actual: Both valid assignments pass. The third is correctly rejected, but the error only says `dict[str, int | str]` is not assignable to `Cat | Dog` [bad-assignment] and points to the whole dict.
Expected: Keep the same rejection and error kind, but explain that "bird" is invalid for kind and that the union accepts "cat" or "dog". This is a diagnostic improvement, not a change to what type-checks.
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
Activity
rchiodo commentedon Nov 25, 2026
#claim
github-actions commentedon Nov 25, 2026
@rchiodo you've claimed this issue — it's now assigned to you. Thanks for picking it up! 🎉