mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
ntersphinx_disabled_refs, type rename
This commit is contained in:
@@ -46,7 +46,7 @@ from sphinx.environment import BuildEnvironment
|
||||
from sphinx.locale import _, __
|
||||
from sphinx.util import logging, requests
|
||||
from sphinx.util.inventory import InventoryFile
|
||||
from sphinx.util.typing import Inventory, InventoryInner
|
||||
from sphinx.util.typing import Inventory, InventoryItem
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -260,7 +260,7 @@ def load_mappings(app: Sphinx) -> None:
|
||||
|
||||
|
||||
def _create_element_from_result(domain: Domain, inv_name: Optional[str],
|
||||
data: InventoryInner,
|
||||
data: InventoryItem,
|
||||
node: pending_xref, contnode: TextElement) -> Element:
|
||||
proj, version, uri, dispname = data
|
||||
if '://' not in uri and node.get('refdoc'):
|
||||
|
||||
@@ -70,8 +70,8 @@ OptionSpec = Dict[str, Callable[[str], Any]]
|
||||
TitleGetter = Callable[[nodes.Node], str]
|
||||
|
||||
# inventory data on memory
|
||||
InventoryInner = Tuple[str, str, str, str]
|
||||
Inventory = Dict[str, Dict[str, InventoryInner]]
|
||||
InventoryItem = Tuple[str, str, str, str]
|
||||
Inventory = Dict[str, Dict[str, InventoryItem]]
|
||||
|
||||
|
||||
def get_type_hints(obj: Any, globalns: Dict = None, localns: Dict = None) -> Dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user