Skip to content

Commit 8835205

Browse files
jspaezpDanielNoord
andcommitted
Update pydocstringformatter/_formatting/base.py
Co-authored-by: Daniël van Noord <[email protected]>
1 parent 8b54d3e commit 8835205

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)