Skip to content

stubtest: correct "argument" → "parameter" terminology in error messages #19707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

PrinceNaroliya
Copy link
Contributor

Description

This PR fixes the incorrect usage of the word "argument" in stubtest error messages and replaces it with the correct term "parameter", as requested in issue #16508.

According to convention:

  • Parameter → part of the function signature
  • Argument → actual value passed when calling the function

Since stubtest deals only with parameters, this correction improves the accuracy of the error messages.

Related Issue

Fixes #16508

Notes

This is my third contribution to python (one of my previous PRs has already been merged 🎉).
I am still a beginner, so if there are any problems with this PR, please let me know — I’ll be happy to make the necessary fixes.

⚠️ I wasn’t able to fully test the changes locally, so I would really appreciate feedback if something needs adjustment.

Checklist

@JelleZijlstra
Copy link
Member

You'll need to update some unit tests, see the CI output.

@JelleZijlstra JelleZijlstra merged commit 35a15b1 into python:master Aug 22, 2025
13 checks passed
@PrinceNaroliya PrinceNaroliya deleted the fix/stubtest-parameters-terminology branch August 22, 2025 04:11
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.

stubtest nit: arguments vs. parameters
2 participants