neogen icon indicating copy to clipboard operation
neogen copied to clipboard

Allow generating explicit sections

Open ColinKennedy opened this issue 1 year ago • 3 comments

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?

ColinKennedy avatar Feb 07 '24 06:02 ColinKennedy

+1, addition: to remove parameters that were removed!

Willem-J-an avatar Feb 28 '24 09:02 Willem-J-an

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 ?

danymat avatar Mar 03 '24 22:03 danymat

Yes! That's what I was thinking about!

Willem-J-an avatar Mar 05 '24 06:03 Willem-J-an