Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Lykke Andersen <Jakob@caput.dk>2021-07-16 14:12:52 +0300
committerJakob Lykke Andersen <Jakob@caput.dk>2021-10-31 15:15:46 +0300
commit961f5af0963055f0206a437765a087a2bf03bcca (patch)
tree0ae4777a10e919fd65aa5f4653e63dd4c4ee43e7 /sphinx/util
parent8dd84bc8aba782d924854174c5f9ad4a65cfccf1 (diff)
Intersphinx, refactoring
Also, when a reference is unresolved, don't strip the inventory prefix.
Diffstat (limited to 'sphinx/util')
-rw-r--r--sphinx/util/typing.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/util/typing.py b/sphinx/util/typing.py
index a2ab5f931..b7e591a82 100644
--- a/sphinx/util/typing.py
+++ b/sphinx/util/typing.py
@@ -70,7 +70,8 @@ OptionSpec = Dict[str, Callable[[str], Any]]
TitleGetter = Callable[[nodes.Node], str]
# inventory data on memory
-Inventory = Dict[str, Dict[str, Tuple[str, str, str, str]]]
+InventoryInner = Tuple[str, str, str, str]
+Inventory = Dict[str, Dict[str, InventoryInner]]
def get_type_hints(obj: Any, globalns: Dict = None, localns: Dict = None) -> Dict[str, Any]: