summaryrefslogtreecommitdiffstats
path: root/Doc/tools/extensions
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2024-09-23 22:19:35 (GMT)
committerGitHub <noreply@github.com>2024-09-23 22:19:35 (GMT)
commit8a2baedc4bcb606da937e4e066b4b3a18961cace (patch)
tree06e45d632655099faa09aa5719d51b595d86513b /Doc/tools/extensions
parent0060486862bfa8e6583beb627be154daaaaa9e2a (diff)
downloadcpython-8a2baedc4bcb606da937e4e066b4b3a18961cace.zip
cpython-8a2baedc4bcb606da937e4e066b4b3a18961cace.tar.gz
cpython-8a2baedc4bcb606da937e4e066b4b3a18961cace.tar.bz2
Bump Ruff to 0.6.7 (#124384)
Diffstat (limited to 'Doc/tools/extensions')
-rw-r--r--Doc/tools/extensions/c_annotations.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Doc/tools/extensions/c_annotations.py b/Doc/tools/extensions/c_annotations.py
index a65cf71..50065d3 100644
--- a/Doc/tools/extensions/c_annotations.py
+++ b/Doc/tools/extensions/c_annotations.py
@@ -124,10 +124,7 @@ def add_annotations(app: Sphinx, doctree: nodes.document) -> None:
continue
if not par[0].get("ids", None):
continue
- name = par[0]["ids"][0]
- if name.startswith("c."):
- name = name[2:]
-
+ name = par[0]["ids"][0].removeprefix("c.")
objtype = par["objtype"]
# Stable ABI annotation.