Skip to content

Update error message for parameter overlap in TypedDict#20934

Open
hyperkai wants to merge 3 commits intopython:masterfrom
hyperkai:hyperkai-patch-22
Open

Update error message for parameter overlap in TypedDict#20934
hyperkai wants to merge 3 commits intopython:masterfrom
hyperkai:hyperkai-patch-22

Conversation

@hyperkai
Copy link
Contributor

@hyperkai hyperkai commented Mar 1, 2026

Fix: #20933

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

Diff from mypy_primer, showing the effect of this PR on open source code:

discord.py (https://github.com/Rapptz/discord.py)
- discord/ext/commands/hybrid.py:510: error: Overlap between argument names and ** TypedDict items: "description", "name"  [misc]
+ discord/ext/commands/hybrid.py:510: error: Overlap between parameter names and ** TypedDict items: "description", "name"  [misc]
- discord/ext/commands/hybrid.py:635: error: Overlap between argument names and ** TypedDict items: "description", "name"  [misc]
+ discord/ext/commands/hybrid.py:635: error: Overlap between parameter names and ** TypedDict items: "description", "name"  [misc]
- discord/ext/commands/hybrid.py:844: error: Overlap between argument names and ** TypedDict items: "name", "with_app_command"  [misc]
+ discord/ext/commands/hybrid.py:844: error: Overlap between parameter names and ** TypedDict items: "name", "with_app_command"  [misc]
- discord/ext/commands/hybrid.py:868: error: Overlap between argument names and ** TypedDict items: "name", "with_app_command"  [misc]
+ discord/ext/commands/hybrid.py:868: error: Overlap between parameter names and ** TypedDict items: "name", "with_app_command"  [misc]
- discord/ext/commands/hybrid.py:893: error: Overlap between argument names and ** TypedDict items: "name", "with_app_command"  [misc]
+ discord/ext/commands/hybrid.py:893: error: Overlap between parameter names and ** TypedDict items: "name", "with_app_command"  [misc]
- discord/ext/commands/hybrid.py:945: error: Overlap between argument names and ** TypedDict items: "name", "with_app_command"  [misc]
+ discord/ext/commands/hybrid.py:945: error: Overlap between parameter names and ** TypedDict items: "name", "with_app_command"  [misc]
- discord/ext/commands/bot.py:290: error: Overlap between argument names and ** TypedDict items: "name", "with_app_command"  [misc]
+ discord/ext/commands/bot.py:290: error: Overlap between parameter names and ** TypedDict items: "name", "with_app_command"  [misc]
- discord/ext/commands/bot.py:314: error: Overlap between argument names and ** TypedDict items: "name", "with_app_command"  [misc]
+ discord/ext/commands/bot.py:314: error: Overlap between parameter names and ** TypedDict items: "name", "with_app_command"  [misc]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants