Skip to content

Commit 1ab306b

Browse files
committed
ruff
1 parent 1ff4077 commit 1ab306b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

doc/ReleaseNotes/mk_releasenotes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@
4848
f"{fragment.name}: invalid section '{item['section']}'"
4949
f", expected one of: {list(sections)}"
5050
)
51-
if "subsection" in item and item["subsection"] and item["subsection"] not in subsections:
51+
if (
52+
"subsection" in item
53+
and item["subsection"]
54+
and item["subsection"] not in subsections
55+
):
5256
errors.append(
5357
f"{fragment.name}: invalid subsection '{item['subsection']}'"
5458
f", expected one of: {list(subsections)}"

0 commit comments

Comments
 (0)