File: intersphinx

package info (click to toggle)
mypy 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 16,728 kB
  • sloc: python: 90,748; cpp: 11,306; ansic: 4,807; makefile: 242; sh: 19
file content (29 lines) | stat: -rw-r--r-- 1,331 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

--- mypy.orig/docs/source/conf.py
+++ mypy/docs/source/conf.py
@@ -265,12 +265,12 @@
 rst_prolog = ".. |...| unicode:: U+2026   .. ellipsis\n"
 
 intersphinx_mapping = {
-    "python": ("https://docs.python.org/3", None),
-    "six": ("https://six.readthedocs.io", None),
-    "attrs": ("http://www.attrs.org/en/stable", None),
-    "cython": ("http://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/python-six-doc/html/objects.inv'),
+    "attrs": ("http://www.attrs.org/en/stable", '/usr/share/doc/python-attr-doc/html/objects.inv'),
+    "cython": ("http://docs.cython.org/en/latest", '/usr/share/doc/cython-doc/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'),
 }