tmhedberg / SimpylFold

No-BS Python code folding for Vim
BSD 3-Clause "New" or "Revised" License
653 stars 57 forks source link

[Question] Show Docstring of first line after """ #96

Closed ghost closed 6 years ago

ghost commented 6 years ago

With below function:

def stdev(arr):
    """
    Compute the standard deviation.
    second line of docstring
    """

Current SimpyIFold shows +--- 3 lines: """ but it'll be more logic if it shows +--- 3 lines: Compute the standard deviation.?
I just ask, actually I'm okay with +--- 3 lines: """, who care about docstring :)

iago-lito commented 6 years ago

I think that PEP8 rather recommends docstrings like:

def stdev(arr):
    """Compute the standard deviation.
    second line of docstring
    """

.. which should solve both problems, because everyone does cares about docstrings ;)