Skip to content

Commit 6ff54ca

Browse files
committed
Callable -> RoleFunction
1 parent 5f3cf33 commit 6ff54ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinx/domains/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from sphinx.locale import _
1414

1515
if TYPE_CHECKING:
16-
from collections.abc import Callable, Iterable, Sequence, Set
16+
from collections.abc import Iterable, Sequence, Set
1717
from typing import Any
1818

1919
from docutils import nodes
@@ -108,7 +108,7 @@ class Domain:
108108

109109
def __init__(self, env: BuildEnvironment) -> None:
110110
self.env: BuildEnvironment = env
111-
self._role_cache: dict[str, Callable] = {}
111+
self._role_cache: dict[str, RoleFunction] = {}
112112
self._directive_cache: dict[str, type[Directive]] = {}
113113
self._role2type: dict[str, list[str]] = {}
114114
self._type2role: dict[str, str] = {}

0 commit comments

Comments
 (0)