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), }