Skip to content

Commit f2a9bad

Browse files
committed
Run the version of Ruff that CI needs today
hopefully
1 parent 0e04200 commit f2a9bad

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Doc/tools/extensions/c_annotations.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,12 @@ def add_annotations(app: Sphinx, doctree: nodes.document) -> None:
189189
ancestor = node
190190
while ancestor:
191191
if 'omit-stable-abi-note' not in ancestor.get(
192-
'c_annotations', [],
192+
'c_annotations',
193+
[],
193194
):
194195
break
195196
ancestor = node.parent
196197
else:
197-
198198
# no skip; add the annotation
199199
annotation = _stable_abi_annotation(record)
200200
node.insert(0, annotation)
@@ -466,6 +466,7 @@ class StableABINote(SphinxDirective):
466466
This directive allows adding a similarly styled note manually.
467467
Pair with omit-stable-abi-notes to override the automatic generation.
468468
"""
469+
469470
has_content = True
470471

471472
def run(self) -> list[nodes.Node]:
@@ -483,6 +484,7 @@ class OmitStableABINotes(SphinxDirective):
483484
Normally used for dense lists/tables of definitions, where individual notes
484485
are omitted and the whole block has a common manual note.
485486
"""
487+
486488
has_content = True
487489

488490
def run(self) -> list[nodes.Node]:

0 commit comments

Comments
 (0)