Skip to content

Commit 903c95f

Browse files
jspaezpDanielNoord
andauthored
Update pydocstringformatter/_formatting/base.py
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
1 parent 0c6795b commit 903c95f

File tree

1 file changed

+1
-1
lines changed
  • pydocstringformatter/_formatting

1 file changed

+1
-1
lines changed

pydocstringformatter/_formatting/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def treat_string(
278278
if first_section:
279279
section[0] = section[0].lstrip()
280280
first_section = False
281-
elif len(section[0]) > 0 and not section[0][0].isspace():
281+
elif section[0] and not section[0][0].isspace():
282282
section[0] = f"{' ' * indent_length:s}{section[0]:s}"
283283

284284
# Rejoin sections

0 commit comments

Comments
 (0)