From: "Michael R. Crusoe" <crusoe@debian.org>
Date: Sat, 2 Apr 2022 17:49:43 -0400
Subject: link to local documenatin

Forwarded: not-needed
---
 docs/source/conf.py | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

--- mypy.orig/docs/source/conf.py
+++ mypy/docs/source/conf.py
@@ -265,12 +265,21 @@
 rst_prolog = ".. |...| unicode:: U+2026   .. ellipsis\n"
 
 intersphinx_mapping = {
-    "python": ("https://docs.python.org/3", None),
-    "six": ("https://six.readthedocs.io", None),
-    "attrs": ("https://www.attrs.org/en/stable/", None),
-    "cython": ("https://docs.cython.org/en/latest", None),
+    "python": (
+        "https://docs.python.org/3",
+        f"/usr/share/doc/python{sys.version_info.major}.{sys.version_info.minor}/html/objects.inv",
+    ),
+    "six": ("https://six.readthedocs.io", "/usr/share/doc/python3-six/html/objects.inv"),
+    "attrs": (
+        "https://www.attrs.org/en/stable",
+        "/usr/share/doc/python-attr-doc/html/objects.inv",
+    ),
+    "cython": ("https://docs.cython.org/en/latest", "/usr/share/doc/cython3/html/objects.inv"),
     "monkeytype": ("https://monkeytype.readthedocs.io/en/latest", None),
-    "setuptools": ("https://setuptools.readthedocs.io/en/latest", None),
+    "setuptools": (
+        "https://setuptools.readthedocs.io/en/latest",
+        "/usr/share/doc/python-setuptools-doc/html/objects.inv",
+    ),
 }
 
 
