autoDocstring icon indicating copy to clipboard operation
autoDocstring copied to clipboard

Docstring will not generate when triple quote string exists in function body

Open misharigot opened this issue 6 years ago • 3 comments

This only happens when the quote style is the same as the triple quote string inside the function body. Also happens with non-f-strings.

See example:

gif of the issue

def foo(bar):
    # Try to add a docstring here (if your quote style is also """)
    x = """hello"""
    return x

misharigot avatar May 01 '19 13:05 misharigot

Thanks Misha, I will take a look at the parsing code and update it to fix this issue.

NilsJPWerner avatar May 01 '19 14:05 NilsJPWerner

@NilsJPWerner Did you work on this ? I still face this issue in numpy based docstrings.

harshraj22 avatar Jan 18 '22 07:01 harshraj22

Issue still exists...

bar-dzi avatar Apr 28 '23 13:04 bar-dzi