
Doing so is invalid. Note this only fixes the preview style since the logic putting closing docstring quotes on their own line if they violate the line length limit is quite new. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
106 lines
3.4 KiB
Python
106 lines
3.4 KiB
Python
def docstring_almost_at_line_limit():
|
|
"""long docstring.................................................................
|
|
"""
|
|
|
|
|
|
def docstring_almost_at_line_limit_with_prefix():
|
|
f"""long docstring................................................................
|
|
"""
|
|
|
|
|
|
def mulitline_docstring_almost_at_line_limit():
|
|
"""long docstring.................................................................
|
|
|
|
..................................................................................
|
|
"""
|
|
|
|
|
|
def mulitline_docstring_almost_at_line_limit_with_prefix():
|
|
f"""long docstring................................................................
|
|
|
|
..................................................................................
|
|
"""
|
|
|
|
|
|
def docstring_at_line_limit():
|
|
"""long docstring................................................................"""
|
|
|
|
|
|
def docstring_at_line_limit_with_prefix():
|
|
f"""long docstring..............................................................."""
|
|
|
|
|
|
def multiline_docstring_at_line_limit():
|
|
"""first line-----------------------------------------------------------------------
|
|
|
|
second line----------------------------------------------------------------------"""
|
|
|
|
|
|
def multiline_docstring_at_line_limit_with_prefix():
|
|
f"""first line----------------------------------------------------------------------
|
|
|
|
second line----------------------------------------------------------------------"""
|
|
|
|
|
|
def single_quote_docstring_over_line_limit():
|
|
"We do not want to put the closing quote on a new line as that is invalid (see GH-3141)."
|
|
|
|
|
|
def single_quote_docstring_over_line_limit2():
|
|
'We do not want to put the closing quote on a new line as that is invalid (see GH-3141).'
|
|
|
|
|
|
# output
|
|
|
|
|
|
def docstring_almost_at_line_limit():
|
|
"""long docstring.................................................................
|
|
"""
|
|
|
|
|
|
def docstring_almost_at_line_limit_with_prefix():
|
|
f"""long docstring................................................................
|
|
"""
|
|
|
|
|
|
def mulitline_docstring_almost_at_line_limit():
|
|
"""long docstring.................................................................
|
|
|
|
..................................................................................
|
|
"""
|
|
|
|
|
|
def mulitline_docstring_almost_at_line_limit_with_prefix():
|
|
f"""long docstring................................................................
|
|
|
|
..................................................................................
|
|
"""
|
|
|
|
|
|
def docstring_at_line_limit():
|
|
"""long docstring................................................................"""
|
|
|
|
|
|
def docstring_at_line_limit_with_prefix():
|
|
f"""long docstring..............................................................."""
|
|
|
|
|
|
def multiline_docstring_at_line_limit():
|
|
"""first line-----------------------------------------------------------------------
|
|
|
|
second line----------------------------------------------------------------------"""
|
|
|
|
|
|
def multiline_docstring_at_line_limit_with_prefix():
|
|
f"""first line----------------------------------------------------------------------
|
|
|
|
second line----------------------------------------------------------------------"""
|
|
|
|
|
|
def single_quote_docstring_over_line_limit():
|
|
"We do not want to put the closing quote on a new line as that is invalid (see GH-3141)."
|
|
|
|
|
|
def single_quote_docstring_over_line_limit2():
|
|
"We do not want to put the closing quote on a new line as that is invalid (see GH-3141)."
|