Skip to content

Commit d3d9cd8

Browse files
[style] Refactor a multiline fstring for clarity
1 parent ac3443b commit d3d9cd8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

doc/exts/pylint_options.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,10 @@ def _write_options_page(options: OptionsDataDict, linter: PyLinter) -> None:
177177
found_extensions = True
178178
sections.append(_create_checker_section(checker, checker_options, linter))
179179

180-
sections_string = "\n\n".join(sections)
181180
all_options_path = PYLINT_USERGUIDE_PATH / "configuration" / "all-options.rst"
181+
sections_string = "\n\n".join(sections)
182182
with open(all_options_path, "w", encoding="utf-8") as stream:
183-
stream.write(
184-
f"""
185-
186-
{sections_string}"""
187-
)
183+
stream.write(f"\n\n{sections_string}")
188184

189185

190186
# pylint: disable-next=unused-argument

0 commit comments

Comments
 (0)