From 22b036646d6cd0c1b160e8dd75302dbb2bbc9821 Mon Sep 17 00:00:00 2001 From: awais qureshi Date: Tue, 2 Apr 2024 14:17:42 +0500 Subject: [PATCH] feat: Adding python3.11 and 3.12 support. --- code_annotations/contrib/sphinx/extensions/featuretoggles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code_annotations/contrib/sphinx/extensions/featuretoggles.py b/code_annotations/contrib/sphinx/extensions/featuretoggles.py index 2394023..9ce68f9 100644 --- a/code_annotations/contrib/sphinx/extensions/featuretoggles.py +++ b/code_annotations/contrib/sphinx/extensions/featuretoggles.py @@ -111,7 +111,7 @@ def iter_nodes(self): for opt in optional_attrs: if toggle.get(f".. toggle_{opt}:") not in (None, "None", "n/a", "N/A"): toggle_section += nodes.paragraph( - text=f'{opt.title().replace("_"," ")}: {toggle[f".. toggle_{opt}:"]}', + text=f'{opt.title().replace("_", " ")}: {toggle[f".. toggle_{opt}:"]}', ids=[f"{opt}-{toggle_name}"], ) yield toggle_section