neogen
neogen copied to clipboard
Allow generating explicit sections
Sometimes I just need to generate only the Returns: portion of a Google-style Python docstring. It'd be cool to have an API to do generate just X or Y section of a full docstring if it doesn't already exist. I played around a bit with the source and it seems doable without that too much work since all of the docstring templates are already annotated with types. If this doesn't already exist, would you be up for a PR to add it?
+1, addition: to remove parameters that were removed!
Hey @ColinKennedy , indeed the code still does not exist. You can start writing something for that, else I will do a suggestion @Willem-J-an, I do not understand your addition, can you elaborate a bit ? Is this the idea to update the annotation based on what's been added/deleted ? Is this related to #65 ?
Yes! That's what I was thinking about!