Skip to content

Commit 9c048b9

Browse files
authored
Only make signature replacement once (#66)
Closes #65
1 parent 3551caf commit 9c048b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flake8_rst_docstrings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def run(self):
197197
if py_ext_sig_re.match(firstline.strip()):
198198
# replace by an empty line so the line number
199199
# doesn't need to be adjusted
200-
docstring = docstring.replace(firstline, "")
200+
docstring = docstring.replace(firstline, "", 1)
201201

202202
try:
203203
rst_errors = list(rst_lint.lint(docstring))

0 commit comments

Comments
 (0)