From 37c6c47d259da85ae466e5ce34afb3b79ac73f78 Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Sun, 15 Mar 2026 05:48:56 -0400 Subject: [PATCH] Bump mypy to 1.19.1 (GH-145956) (cherry picked from commit e167e06f8c6b24f7b54e8d6b87c1cac1667dd2cf) Co-authored-by: Brian Schubert --- Lib/test/libregrtest/utils.py | 2 +- Tools/clinic/libclinic/clanguage.py | 2 +- Tools/requirements-dev.txt | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Lib/test/libregrtest/utils.py b/Lib/test/libregrtest/utils.py index 4d7e2840c32596..f12cec944fd3bf 100644 --- a/Lib/test/libregrtest/utils.py +++ b/Lib/test/libregrtest/utils.py @@ -151,7 +151,7 @@ def setup_unraisable_hook() -> None: sys.unraisablehook = regrtest_unraisable_hook -orig_threading_excepthook: Callable[..., None] | None = None +orig_threading_excepthook: Callable[..., object] | None = None def regrtest_threading_excepthook(args) -> None: diff --git a/Tools/clinic/libclinic/clanguage.py b/Tools/clinic/libclinic/clanguage.py index 73d47833d97294..fa52d18289c8be 100644 --- a/Tools/clinic/libclinic/clanguage.py +++ b/Tools/clinic/libclinic/clanguage.py @@ -6,7 +6,7 @@ from operator import attrgetter from collections.abc import Iterable -import libclinic +import libclinic.cpp from libclinic import ( unspecified, fail, Sentinels, VersionTuple) from libclinic.codegen import CRenderData, TemplateDict, CodeGen diff --git a/Tools/requirements-dev.txt b/Tools/requirements-dev.txt index 73236767374378..af5cbaa7689f33 100644 --- a/Tools/requirements-dev.txt +++ b/Tools/requirements-dev.txt @@ -1,7 +1,7 @@ # Requirements file for external linters and checks we run on # Tools/clinic, Tools/cases_generator/, and Tools/peg_generator/ in CI -mypy==1.17.1 +mypy==1.19.1 # needed for peg_generator: -types-psutil==7.0.0.20250801 -types-setuptools==80.9.0.20250801 +types-psutil==7.2.2.20260130 +types-setuptools==82.0.0.20260210