Skip to content

Commit 778a3fe

Browse files
committed
ntersphinx_disabled_refs, type rename
1 parent cfbac2c commit 778a3fe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sphinx/ext/intersphinx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
from sphinx.locale import _, __
4747
from sphinx.util import logging, requests
4848
from sphinx.util.inventory import InventoryFile
49-
from sphinx.util.typing import Inventory, InventoryInner
49+
from sphinx.util.typing import Inventory, InventoryItem
5050

5151
logger = logging.getLogger(__name__)
5252

@@ -260,7 +260,7 @@ def load_mappings(app: Sphinx) -> None:
260260

261261

262262
def _create_element_from_result(domain: Domain, inv_name: Optional[str],
263-
data: InventoryInner,
263+
data: InventoryItem,
264264
node: pending_xref, contnode: TextElement) -> Element:
265265
proj, version, uri, dispname = data
266266
if '://' not in uri and node.get('refdoc'):

sphinx/util/typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def _evaluate(self, globalns: Dict, localns: Dict) -> Any:
7070
TitleGetter = Callable[[nodes.Node], str]
7171

7272
# inventory data on memory
73-
InventoryInner = Tuple[str, str, str, str]
74-
Inventory = Dict[str, Dict[str, InventoryInner]]
73+
InventoryItem = Tuple[str, str, str, str]
74+
Inventory = Dict[str, Dict[str, InventoryItem]]
7575

7676

7777
def get_type_hints(obj: Any, globalns: Dict = None, localns: Dict = None) -> Dict[str, Any]:

0 commit comments

Comments
 (0)