-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix #309 Missing helptext for multiline argument #335
base: master
Are you sure you want to change the base?
Conversation
Nice one! Got a couple of thoughts.
Great to see that you've added tests too! In your first one, I think you need to indent the second line of description for |
- Update comments in _consume_google_args_line to match new logic - Fix indentation logic: indent_check compares current line indent with first line indent for argument. - Add new function _is_arg_type to check if arg type is of valid form - Fix tests for multiline helptexts with colons and indents
Thanks for the review @MichaelCG8 |
Looks great! I think this can be merged. One minor thing that you may or may not wish to address is that your new function
If you want it to strictly return Logically though, what you've done works fine. I believe @dbieber and @joejoevictor are the folk with merging powers, and they sometimes make stylistic changes when merging so you could leave as is and they'll make that change if they feel it's necessary. Thanks for doing the work! |
Closes #309
Having colons on wrapped lines no longer causes missing help-text for multiline arguments, as long as the user follows the Google Python Style Guide for docstring args: use a hanging indent of 2 or 4 spaces more than the parameter name.
@MichaelCG8 can you review this? Thanks :)