You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
I find that no matter how I write multi-line docstring, there is an error D213. Even the source code of pydocstyle itself below: source code of pydocstyle that raises D213. Is this a bug or do I miss anything?
defcheck_multi_line_summary_start(self, definition, docstring):
"""D21{2,3}: Multi-line docstring summary style check. A multi-line docstring summary should start either at the first, or separately at the second line of a docstring. """ifdocstring:
start_triple= [
'"""', "'''",
'u"""', "u'''",
'r"""', "r'''",
'ur"""', "ur'''"
]
lines=ast.literal_eval(docstring).split('\n')
iflen(lines) >1:
first=docstring.split("\n")[0].strip().lower()
iffirstinstart_triple:
returnviolations.D212()
else:
returnviolations.D213()