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


Commits:
1c0c810e by Michael R. Crusoe at 2026-02-24T09:54:06+01:00
Added patch for compatibility with pathspec version 1.0.0+

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/accept_pathspec_v1
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+mypy (1.19.1-3) unstable; urgency=medium
+
+  * Added patch for compatibility with pathspec version 1.0.0+
+
+ -- Michael R. Crusoe <[email protected]>  Tue, 24 Feb 2026 09:54:04 +0100
+
 mypy (1.19.1-2) unstable; urgency=medium
 
   * d/tests: depend on all python3 -dev packages, not just the default


=====================================
debian/patches/accept_pathspec_v1
=====================================
@@ -0,0 +1,28 @@
+From: Michael R. Crusoe <[email protected]>
+Subject: accept pathspec v1
+Forwarded: not-needed
+
+Adapted from 
https://github.com/python/mypy/commit/7fee02ca109ad511bb55efd83ec13efc7f7eabfb
+--- mypy.orig/mypy/modulefinder.py
++++ mypy/mypy/modulefinder.py
+@@ -17,7 +17,10 @@
+ from typing_extensions import TypeAlias as _TypeAlias
+ 
+ from pathspec import PathSpec
+-from pathspec.patterns.gitwildmatch import GitWildMatchPatternError
++try:
++    from pathspec.patterns.gitignore import GitIgnorePatternError
++except ImportError:
++    from pathspec.patterns.gitwildmatch import GitWildMatchPatternError as 
GitIgnorePatternError
+ 
+ from mypy import pyinfo
+ from mypy.errors import CompileError
+@@ -740,7 +743,7 @@
+             lines = f.readlines()
+         try:
+             return parent_gitignores + [(dir, 
PathSpec.from_lines("gitwildmatch", lines))]
+-        except GitWildMatchPatternError:
++        except GitIgnorePatternError:
+             print(f"error: could not parse {gitignore}", file=sys.stderr)
+             return parent_gitignores
+     return parent_gitignores


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@ hint-typeshed-package
 verbose
 intersphinx
 self_check_py_version
+accept_pathspec_v1



View it on GitLab: 
https://salsa.debian.org/python-team/packages/mypy/-/commit/1c0c810eba9bd8102a4b414149ded39aff2063ca

-- 
View it on GitLab: 
https://salsa.debian.org/python-team/packages/mypy/-/commit/1c0c810eba9bd8102a4b414149ded39aff2063ca
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to