From: sobolevn Date: Mon, 5 May 2025 10:29:48 +0000 (+0300) Subject: Bump mypy to 1.15 (#133405) X-Git-Tag: v3.14.0b1~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8467026ed66ca3abefe3a13860d2633eae3d7164;p=thirdparty%2FPython%2Fcpython.git Bump mypy to 1.15 (#133405) --- diff --git a/Lib/_pyrepl/commands.py b/Lib/_pyrepl/commands.py index 2054a8e400fd..2354fbb2ec2c 100644 --- a/Lib/_pyrepl/commands.py +++ b/Lib/_pyrepl/commands.py @@ -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): diff --git a/Lib/test/libregrtest/setup.py b/Lib/test/libregrtest/setup.py index c0346aa934d3..c3d1f60a4006 100644 --- a/Lib/test/libregrtest/setup.py +++ b/Lib/test/libregrtest/setup.py @@ -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'): diff --git a/Tools/requirements-dev.txt b/Tools/requirements-dev.txt index e5badaccadda..5bf180bb30a3 100644 --- a/Tools/requirements-dev.txt +++ b/Tools/requirements-dev.txt @@ -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