-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Python google_docstring not behaving with optional arguments #117
Comments
Scenario 1:
Indeed, it's a bug. I will fix it. Scenario 2
This is actual behavior:
Scenario 3
It's a bug, thanks for catching it! Thank you for this great feedback, and I hope you still find value in this plugin while those features are still in the queue. |
Yeah it is a great plug in. I looked at how the mapping works a bit more this morning and started to wrap my head around what is happening. My lua is a 1/10. So the difficulty is not coming from your code 😄 . |
Nevertheless, I don't think neogen could be complicated, but indeed it's complex. A very good documentation alongside the actual code (even more because you're starting lua) is to check the help file:
Here, you'll get the philosophy, the idea behind code structure and how to understand/customize it |
Hello, sorry for the delay (and merry Christmas) I created a PR to fix bug 1 and 3 that you provided. |
I am having issues where optional arguments are not behaving as expected when creating docstrings.
Scenario 1: no optional arguments
Results: args are there, but the
Args:
header is missing. I would expect it based on the template definition. Not the end of the world, just noticed it was differentScenario 2: optional argument, but no typing information.
Results: Args in wrong order, and missing type of optional argument.
Scenario 3: Typed optional arguments
Results: typed optional argument completely missing.
Here is my config
For reference this is the output I get, and would like to get close to, from VS code running autoDocstring
I am running osX 12.6 Montery on an M1 Mac.
Any thoughts on what is happening? I tried to look at the google_docstring template but only understood about 20% of what was happening.
The text was updated successfully, but these errors were encountered: