Skip to content

Update error message for parameter overlap in TypedDict#20956

Merged
hauntsaninja merged 2 commits into
python:masterfrom
hyperkai:hyperkai-patch-3
Mar 4, 2026
Merged

Update error message for parameter overlap in TypedDict#20956
hauntsaninja merged 2 commits into
python:masterfrom
hyperkai:hyperkai-patch-3

Conversation

@hyperkai

@hyperkai hyperkai commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

Fix: #20933

@github-actions

github-actions Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

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]

@hauntsaninja
hauntsaninja merged commit ea8c8f9 into python:master Mar 4, 2026
24 checks passed
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