File: self_check_py_version

package info (click to toggle)
mypy 1.19.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 22,412 kB
  • sloc: python: 114,754; ansic: 13,343; cpp: 11,380; makefile: 257; sh: 28
file content (19 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Michael R. Crusoe <crusoe@debian.org>
Description: Debian uses Python 3.13+ including a newer pytest version
Forwarded: not-needed

So bump this version to avoid:
/usr/lib/python3/dist-packages/_pytest/terminal.py:1729: error: Pattern matching is only supported in Python 3.10 and greater  [syntax]
            self._tr.write_raw(sequence, flush=True)
            ^
--- mypy.orig/mypy_self_check.ini
+++ mypy/mypy_self_check.ini
@@ -7,7 +7,7 @@
 pretty = True
 always_false = MYPYC
 plugins = mypy.plugins.proper_plugin
-python_version = 3.9
+python_version = 3.10
 exclude = mypy/typeshed/|mypyc/test-data/
 enable_error_code = ignore-without-code,redundant-expr
 enable_incomplete_feature = PreciseTupleTypes