[med-svn] [Git][python-team/packages/mypy][master] 3 commits: Add patch bump ast-serialize 0.13

Maximiliano Curia (@maxy) gitlab at salsa.debian.org
Wed Oct 28 09:18:29 GMT 2026



Maximiliano Curia pushed to branch master at Debian Python Team / packages / mypy


Commits:
d1e6f72a by Maximiliano Curia at 2026-10-26T19:49:04+01:00
Add patch bump ast-serialize 0.13

- - - - -
713ed4ba by Maximiliano Curia at 2026-10-27T08:13:05+01:00
Drop .mypy_cache

- - - - -
d2c5b436 by Maximiliano Curia at 2026-10-28T09:28:38+01:00
Release to unstable

- - - - -


5 changed files:

- debian/changelog
- debian/control
- + debian/patches/0002-Bump-ast-serialize-to-0.13.0.patch
- debian/patches/series
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+mypy (2.4.0-4) unstable; urgency=medium
+
+  * Team upload.
+  * Add patch bump ast-serialize 0.13 (Closes: #1152277)
+  * Drop .mypy_cache
+
+ -- Maximiliano Curia <maxy at debian.org>  Wed, 28 Oct 2026 09:27:25 +0100
+
 mypy (2.4.0-3) unstable; urgency=medium
 
   * Nope, those flaky tests are still flaky.


=====================================
debian/control
=====================================
@@ -15,7 +15,7 @@ Build-Depends:
  flake8 <!nocheck>,
  help2man,
  python3-all,
- python3-ast-serialize,
+ python3-ast-serialize (>= 0.13.0),
  python3-librt,
  python3-lxml,
  python3-attr <!nocheck>,


=====================================
debian/patches/0002-Bump-ast-serialize-to-0.13.0.patch
=====================================
@@ -0,0 +1,25 @@
+From 0ff0c12d49c448fd706143f9a61201154a905f62 Mon Sep 17 00:00:00 2001
+From: Ivan Levkivskyi <levkivskyi at gmail.com>
+Date: Mon, 12 Oct 2026 19:08:18 +0100
+Subject: [PATCH] Bump ast-serialize to 0.13.0 (#22186)
+
+One test needs update because duplicate type comments are not blockers
+anymore.
+
+Origin: upstream, https://github.com/python/mypy/commit/0ff0c12d49c448fd706143f9a61201154a905f62
+---
+diff --git a/test-data/unit/check-errorcodes.test b/test-data/unit/check-errorcodes.test
+index c3882b86d..455eb93d9 100644
+--- a/test-data/unit/check-errorcodes.test
++++ b/test-data/unit/check-errorcodes.test
+@@ -852,7 +852,10 @@ main:2: error: Name "y" is not defined  [name-defined]
+ x = y  # type: int  # type: ignored[foo]
+ x = y  # type: int  # type: ignored [foo]
+ [out]
++main:1: error: Name "y" is not defined  [name-defined]
+ main:1: error: Multiple type comments on the same line  [syntax]
++main:2: error: Name "x" already defined on line 1  [no-redef]
++main:2: error: Name "y" is not defined  [name-defined]
+ main:2: error: Multiple type comments on the same line  [syntax]
+ 
+ [case testErrorCode__exit__Return]


=====================================
debian/patches/series
=====================================
@@ -1,4 +1,5 @@
 0001-mypyc-Fix-recursive-setup-for-frame-private-helpers.patch
+0002-Bump-ast-serialize-to-0.13.0.patch
 remove-mypyc-test-run-timeout
 hint-typeshed-package
 verbose


=====================================
debian/rules
=====================================
@@ -84,6 +84,7 @@ endif
 execute_after_dh_auto_install:
 	dh_movefiles --package=mypy --sourcedir=debian/python3-mypy usr/bin
 	rm -Rf debian/python3-mypy/usr/bin
+	rm -Rf debian/python3-mypy/usr/lib/python3*/dist-packages/.mypy_cache
 	find debian -name LICENSE -delete
 
 execute_after_dh_python3:



View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/3c4cab88091f0ffe772be21d5bc030d360b6bc8a...d2c5b436f276c9658227ecace331e33e731d0d5d

-- 
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/3c4cab88091f0ffe772be21d5bc030d360b6bc8a...d2c5b436f276c9658227ecace331e33e731d0d5d
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


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


More information about the debian-med-commit mailing list