[med-svn] [Git][python-team/packages/mypy][master] 3 commits: d/changelog: document Adrian's changes

Michael R. Crusoe (@crusoe) gitlab at salsa.debian.org
Thu Dec 14 13:21:31 GMT 2023



Michael R. Crusoe pushed to branch master at Debian Python Team / packages / mypy


Commits:
0d55e9ab by Michael R. Crusoe at 2023-12-14T12:45:31+01:00
d/changelog: document Adrian's changes

- - - - -
bcb976bd by Michael R. Crusoe at 2023-12-14T14:20:28+01:00
d/patches/hint-typeshed-package: mention the python3-typeshed Debian package, when appropriate. Thanks to Markus Demleitner <msdemlei at fsfe.org> for the suggestion (Closes: #1043266).

- - - - -
a52af8a7 by Michael R. Crusoe at 2023-12-14T14:20:28+01:00
routine-update: Ready to upload to unstable

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/hint-typeshed-package
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+mypy (1.7.1-2) unstable; urgency=medium
+
+  * d/rules: Build fixes for mips64el (and hppa) courtesy of Adrian
+    Bunk.
+  * d/patches/hint-typeshed-package: mention the python3-typeshed Debian
+    package, when appropriate. Thanks to Markus Demleitner <msdemlei at fsfe.org>
+    for the suggestion (Closes: #1043266).
+
+ -- Michael R. Crusoe <crusoe at debian.org>  Thu, 14 Dec 2023 12:47:14 +0100
+
 mypy (1.7.1-1) unstable; urgency=medium
 
   * New upstream version


=====================================
debian/patches/hint-typeshed-package
=====================================
@@ -0,0 +1,46 @@
+Author: Michael R. Crusoe <crusoe at debian.org>
+Co-authored-by: Markus Demleitner <msdemlei at fsfe.org>
+Forwarded: not-needed
+Description: point to python3-typeshed package for missing types
+
+--- mypy.orig/mypy/modulefinder.py
++++ mypy/mypy/modulefinder.py
+@@ -90,7 +90,9 @@
+             notes = [doc_link]
+         elif self is ModuleNotFoundReason.APPROVED_STUBS_NOT_INSTALLED:
+             msg = 'Library stubs not installed for "{module}"'
+-            notes = ['Hint: "python3 -m pip install {stub_dist}"']
++            notes = ['Hint: On Debian systems, you can install the python3-typeshed package to '
++                     'provide mypy with stubs for many popular libraries. '
++                     'In virtual Python environments, you can instead run "python3 -m pip install {stub_dist}".']
+             if not daemon:
+                 notes.append(
+                     '(or run "mypy --install-types" to install all missing stub packages)'
+--- mypy.orig/test-data/unit/fine-grained-modules.test
++++ mypy/test-data/unit/fine-grained-modules.test
+@@ -2199,12 +2199,12 @@
+ import jack
+ [out]
+ a.py:1: error: Library stubs not installed for "requests"
+-a.py:1: note: Hint: "python3 -m pip install types-requests"
++a.py:1: note: Hint: On Debian systems, you can install the python3-typeshed package to provide mypy with stubs for many popular libraries. In virtual Python environments, you can instead run "python3 -m pip install types-requests".
+ a.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ ==
+ ==
+ a.py:1: error: Library stubs not installed for "jack"
+-a.py:1: note: Hint: "python3 -m pip install types-JACK-Client"
++a.py:1: note: Hint: On Debian systems, you can install the python3-typeshed package to provide mypy with stubs for many popular libraries. In virtual Python environments, you can instead run "python3 -m pip install types-JACK-Client".
+ a.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ 
+ [case testIgnoreErrorsFromTypeshed]
+--- mypy.orig/test-data/unit/check-modules.test
++++ mypy/test-data/unit/check-modules.test
+@@ -3148,7 +3148,7 @@
+ [file bleach/__init__.pyi]
+ [out]
+ main:1: error: Library stubs not installed for "bleach.xyz"
+-main:1: note: Hint: "python3 -m pip install types-bleach"
++main:1: note: Hint: On Debian systems, you can install the python3-typeshed package to provide mypy with stubs for many popular libraries. In virtual Python environments, you can instead run "python3 -m pip install types-bleach".
+ main:1: note: (or run "mypy --install-types" to install all missing stub packages)
+ main:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ main:2: error: Library stubs not installed for "bleach.abc"


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
+hint-typeshed-package
 verbose
 intersphinx
 sphinx_7



View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/0556d151e6eee11995002fb471d9df45dcad4fcd...a52af8a74e89bbeff7dbd3b075c88b9287ed1f85

-- 
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/0556d151e6eee11995002fb471d9df45dcad4fcd...a52af8a74e89bbeff7dbd3b075c88b9287ed1f85
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20231214/321e6822/attachment-0001.htm>


More information about the debian-med-commit mailing list