From 991f63d07f7c8cde2b002036fa2e42c77541bec9 Mon Sep 17 00:00:00 2001 From: Jakob Lykke Andersen Date: Sun, 14 Apr 2024 15:39:30 +0200 Subject: [PATCH] fixup, use ClassVar for intersphinx data --- sphinx/domains/c/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sphinx/domains/c/__init__.py b/sphinx/domains/c/__init__.py index e3508223e85..0344f72afbd 100644 --- a/sphinx/domains/c/__init__.py +++ b/sphinx/domains/c/__init__.py @@ -35,6 +35,7 @@ if TYPE_CHECKING: from collections.abc import Iterator + from typing import ClassVar from docutils.nodes import Element, Node, TextElement, system_message @@ -667,7 +668,7 @@ class CDomain(Domain): 'objects': {}, # fullname -> docname, node_id, objtype } - initial_intersphinx_inventory: dict[str, Symbol] = { + initial_intersphinx_inventory: ClassVar[dict[str, Symbol]] = { 'root_symbol': Symbol(None, None, None, None, None), }