Skip to content

Commit b9e741b

Browse files
committed
Run "ruff format" on c_annotations.py
1 parent 5d7ad68 commit b9e741b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Doc/tools/extensions/c_annotations.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,11 @@ class CAPIToolsBanner(SphinxDirective):
273273
optional_arguments = 0
274274
final_argument_whitespace = True
275275

276-
text = sphinx_gettext("It is recommended to use "
277-
":ref:`C API abstractions <c-api-tools>`, "
278-
"rather than using the Python C API directly.")
276+
text = sphinx_gettext(
277+
"It is recommended to use "
278+
":ref:`C API abstractions <c-api-tools>`, "
279+
"rather than using the Python C API directly."
280+
)
279281

280282
def run(self) -> list[nodes.admonition]:
281283
text = self.text
@@ -287,7 +289,8 @@ def run(self) -> list[nodes.admonition]:
287289

288290
source_lines = [text]
289291
admonition_node = nodes.note(
290-
"\n".join(source_lines), classes=["admonition note"])
292+
"\n".join(source_lines), classes=["admonition note"]
293+
)
291294
admonition_node.append(text_node)
292295
return [admonition_node]
293296

0 commit comments

Comments
 (0)