Skip to content

Commit 99cbdcd

Browse files
committed
fixup, use ClassVar for intersphinx data
1 parent bbc2e18 commit 99cbdcd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sphinx/domains/c/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
if TYPE_CHECKING:
3737
from collections.abc import Iterator
38+
from typing import ClassVar
3839

3940
from docutils.nodes import Element, Node, TextElement, system_message
4041

@@ -667,7 +668,7 @@ class CDomain(Domain):
667668
'objects': {}, # fullname -> docname, node_id, objtype
668669
}
669670

670-
initial_intersphinx_inventory: dict[str, Symbol] = {
671+
initial_intersphinx_inventory: ClassVar[dict[str, Symbol]] = {
671672
'root_symbol': Symbol(None, None, None, None, None),
672673
}
673674

0 commit comments

Comments
 (0)