]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Bump mypy to 1.15 (#133405)
authorsobolevn <mail@sobolevn.me>
Mon, 5 May 2025 10:29:48 +0000 (13:29 +0300)
committerGitHub <noreply@github.com>
Mon, 5 May 2025 10:29:48 +0000 (13:29 +0300)
Lib/_pyrepl/commands.py
Lib/test/libregrtest/setup.py
Tools/requirements-dev.txt

index 2054a8e400fdf60b2b8357a26396a3a30bd42532..2354fbb2ec2c1eac4ff0f4b522e9a75aebc2a257 100644 (file)
@@ -439,7 +439,7 @@ class help(Command):
         import _sitebuiltins
 
         with self.reader.suspend():
-            self.reader.msg = _sitebuiltins._Helper()()  # type: ignore[assignment, call-arg]
+            self.reader.msg = _sitebuiltins._Helper()()  # type: ignore[assignment]
 
 
 class invalid_key(Command):
index c0346aa934d3947488dcc8da2bb9698c6c7159f7..c3d1f60a40066573a9a68d354ca5857c5505db15 100644 (file)
@@ -40,7 +40,7 @@ def setup_process() -> None:
         faulthandler.enable(all_threads=True, file=stderr_fd)
 
         # Display the Python traceback on SIGALRM or SIGUSR1 signal
-        signals = []
+        signals: list[signal.Signals] = []
         if hasattr(signal, 'SIGALRM'):
             signals.append(signal.SIGALRM)
         if hasattr(signal, 'SIGUSR1'):
index e5badaccadda4077f4167488abcab9cdcf748346..5bf180bb30a310e998b441a0bebaf14bbc08a04a 100644 (file)
@@ -1,6 +1,6 @@
 # Requirements file for external linters and checks we run on
 # Tools/clinic, Tools/cases_generator/, and Tools/peg_generator/ in CI
-mypy==1.13
+mypy==1.15
 
 # needed for peg_generator:
 types-psutil==6.0.0.20240901