-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Argument Clinic docstring generator ignores a custom name for $module
argument
#94246
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
Comments
I localized the issue. Function cpython/Tools/clinic/clinic.py Lines 4975 to 4976 in 605e9c6
For our two parameters, values are the following:
In other words, the clinic seems to implicitly append cpython/Tools/clinic/clinic.py Lines 3672 to 3682 in 605e9c6
Is there any reason to prefer default names over the custom ones? |
module
argument$module
argument
Closing in favor of gh-94430 as a proper fix. |
Input file
python Tools/clinic/clinic.py test.c
Current result
my_method__doc__
continues to list renamed_foo
as$module
.Expected result
A docstring should use an actual module/self variable name to not confuse docstring readers; its special role is denoted by
$
prefix and position anyway.This issue is a blocker for #92891 (comment).
The text was updated successfully, but these errors were encountered: