Skip to content

Commit

Permalink
fixup, use ClassVar for intersphinx data
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobandersen committed Apr 14, 2024
1 parent da40ba8 commit 991f63d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinx/domains/c/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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),
}

Expand Down

0 comments on commit 991f63d

Please sign in to comment.