Skip to content

Commit fcf7b5c

Browse files
committed
Run prek to reformat the Python code
1 parent 18388f9 commit fcf7b5c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎Doc/tools/extensions/c_annotations.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,13 @@ def add_annotations(app: Sphinx, doctree: nodes.document) -> None:
178178
# Stable ABI annotation.
179179
if record := stable_abi_data.get(name):
180180
record_object_type = ROLE_TO_OBJECT_TYPE[record.role]
181-
if (record_object_type != objtype
181+
if (
182+
record_object_type != objtype
182183
# Some macros are documented as functions
183-
and not(record_object_type == 'macro' and objtype == 'function')):
184+
and not (
185+
record_object_type == 'macro' and objtype == 'function'
186+
)
187+
):
184188
msg = (
185189
f"Object type mismatch in limited API annotation for {name}: "
186190
f"{record_object_type!r} != {objtype!r}"

0 commit comments

Comments
 (0)