We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b54d3e commit 8835205Copy full SHA for 8835205
pydocstringformatter/_formatting/base.py
@@ -278,7 +278,7 @@ def treat_string(
278
if first_section:
279
section[0] = section[0].lstrip()
280
first_section = False
281
- elif len(section[0]) > 0 and not section[0][0].isspace():
+ elif section[0] and not section[0][0].isspace():
282
section[0] = f"{' ' * indent_length:s}{section[0]:s}"
283
284
# Rejoin sections
0 commit comments