We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dbb474 commit 5a04fe5Copy full SHA for 5a04fe5
1 file changed
flake8_rst_docstrings.py
@@ -224,12 +224,11 @@ def run(self):
224
- ast.get_docstring(node, clean=False).count("\n")
225
- 1
226
)
227
- assert node.body[0].lineno >= 1 and start >= 0, (
228
- "Bad start line, node line number %i for: %s\n"
229
- % (
230
- node.body[0].lineno,
231
- docstring,
232
- )
+ assert (
+ node.body[0].lineno >= 1 and start >= 0
+ ), "Bad start line, node line number %i for: %s\n" % (
+ node.body[0].lineno,
+ docstring,
233
234
for rst_error in rst_errors:
235
# TODO - make this a configuration option?
0 commit comments