Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Correct "Duplicate argument" error messages#20957

Merged
hauntsaninja merged 1 commit intopython:masterfrom
hyperkai:hyperkai-patch-4
Mar 3, 2026
Merged

Correct "Duplicate argument" error messages#20957
hauntsaninja merged 1 commit intopython:masterfrom
hyperkai:hyperkai-patch-4

Conversation

@hyperkai
Copy link
Contributor

@hyperkai hyperkai commented Mar 3, 2026

Fix: #20936

I also changed:

check_arg_names -> check_param_names

Because param is correct and consistent but if you're worried that mypy may be broken, I'll revert the above change.

@hyperkai hyperkai changed the title Update "Duplicate parameter" error message Correct "Duplicate argument" error messages Mar 3, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@hauntsaninja hauntsaninja merged commit c32b392 into python:master Mar 3, 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

Development

Successfully merging this pull request may close these issues.

Setting the same name parameters get the wrong error message saying argument instead of parameter

2 participants