From 0f8dc3de606c26726124be0e61eca16c04a76e09 Mon Sep 17 00:00:00 2001 From: James Addison Date: Thu, 25 Jul 2024 22:19:21 +0100 Subject: [PATCH] Fixup: rectify the name of two mutually-shadowing variables whose types have diverged in Sphinx v8. --- sphinxcontrib/devhelp/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sphinxcontrib/devhelp/__init__.py b/sphinxcontrib/devhelp/__init__.py index bc99016..4555acd 100644 --- a/sphinxcontrib/devhelp/__init__.py +++ b/sphinxcontrib/devhelp/__init__.py @@ -118,8 +118,8 @@ def write_index(title: str, refs: list[Any], subitems: Any) -> None: write_index("%s %s" % (parent_title, subitem[0]), subitem[1], []) - for (key, group) in index: - for title, (refs, subitems, key) in group: + for (_group_key, group) in index: + for title, (refs, subitems, _category_key) in group: write_index(title, refs, subitems) # Dump the XML file