We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f3cf33 commit 6ff54caCopy full SHA for 6ff54ca
sphinx/domains/__init__.py
@@ -13,7 +13,7 @@
13
from sphinx.locale import _
14
15
if TYPE_CHECKING:
16
- from collections.abc import Callable, Iterable, Sequence, Set
+ from collections.abc import Iterable, Sequence, Set
17
from typing import Any
18
19
from docutils import nodes
@@ -108,7 +108,7 @@ class Domain:
108
109
def __init__(self, env: BuildEnvironment) -> None:
110
self.env: BuildEnvironment = env
111
- self._role_cache: dict[str, Callable] = {}
+ self._role_cache: dict[str, RoleFunction] = {}
112
self._directive_cache: dict[str, type[Directive]] = {}
113
self._role2type: dict[str, list[str]] = {}
114
self._type2role: dict[str, str] = {}
0 commit comments