generated from fastai/nbdev_template
-
Notifications
You must be signed in to change notification settings - Fork 262
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
@call_parse
: Keyword only arguments help-msg not showing in help
#532
Comments
mennowitteveen
changed the title
[@call_parse] Keyword only arguments help-msg not showing in help
Jul 27, 2023
@call_parse:
Keyword only arguments help-msg not showing in help
mennowitteveen
changed the title
Jul 27, 2023
@call_parse:
Keyword only arguments help-msg not showing in help@call_parse
: Keyword only arguments help-msg not showing in help
mennowitteveen
changed the title
Jul 27, 2023
@call_parse
: Keyword only arguments help-msg not showing in help@call_parse
: Keyword only arguments help-msg not showing in help
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is one of my first Issues, so it probably isn't perfect. Sorry if I missed other (related) Issues.
The problem:
The issues is that using the "*" star syntax to define keyword-only arguments in functions, makes the help message of the arguments after the the star (keyword-only arguments) not show up:
The output:
The behavior is also present if I save to a file and run it from the commandline.
The help message for arg c,d & e are missing. If I comment out the "*, " line it works again.
The cause/potential solution:
I think I have tracked down why this happens:
Since _param_locs does not return keyword-only arguments (defn.args.kwonlyargs) it does not get matched with its comments and hence does not lead to a help message.
Its probably a bit preliminary, but perhaps I can turn this into a PR after some testing?
The text was updated successfully, but these errors were encountered: