vim-doge icon indicating copy to clipboard operation
vim-doge copied to clipboard

Generate python class and module scope docstrings

Open tekulvw opened this issue 10 months ago • 1 comments

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like Class scope documentation serves to provide a description of what the class is and details on any class level parameters:

class Foo:
    """
    Foo is a Thing that does Other Thing.
    :param baz: 
    """
    baz: int

Module scope documentation:

"""
Foo serves to [...]
"""
import time

...

Describe alternatives you've considered

Additional context

tekulvw avatar Apr 18 '24 23:04 tekulvw

+1.

Tracing to https://github.com/kkoomen/vim-doge/blob/master/helper/src/python/parser.rs and the associated tests it looks like only recognising functions is implemented.

It would be nice in the README to document what tags are supported for each language.

btalb avatar Apr 30 '24 04:04 btalb

I've implement the PR #660 based on https://stackoverflow.com/a/3051356 with solely the addition of classes. I'm not supporting the import docstring because it's super rare to see that. It's quite common to add class docs, hence I support that. I'll do a new release soon and will notify it here.

kkoomen avatar May 01 '24 19:05 kkoomen

This feature has been merged and released in v4.7.0.

Feel free to submit any new issues if you experience any unwanted behavior in the future. Thanks for your contribution.

kkoomen avatar May 01 '24 20:05 kkoomen