From 63d593ed4c26c481c76367933368502161c63179 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 1 Aug 2024 14:16:51 +0000 Subject: [PATCH 1/2] build: use mypy<1.11.0 until #682 is fixed --- noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 1e6a570a..9615edf5 100644 --- a/noxfile.py +++ b/noxfile.py @@ -247,7 +247,7 @@ def pytype(session): @nox.session(python=DEFAULT_PYTHON_VERSION) def mypy(session): """Run type-checking.""" - session.install(".[grpc]", "mypy") + session.install(".[grpc]", "mypy<1.11.0") session.install( "types-setuptools", "types-requests", From 61fdb6de1f71261bf723bf4b061f949dc09e6a10 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 1 Aug 2024 10:21:38 -0400 Subject: [PATCH 2/2] add comment --- noxfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/noxfile.py b/noxfile.py index 9615edf5..a15795ea 100644 --- a/noxfile.py +++ b/noxfile.py @@ -247,6 +247,8 @@ def pytype(session): @nox.session(python=DEFAULT_PYTHON_VERSION) def mypy(session): """Run type-checking.""" + # TODO(https://github.com/googleapis/python-api-core/issues/682): + # Use the latest version of mypy instead of mypy<1.11.0 session.install(".[grpc]", "mypy<1.11.0") session.install( "types-setuptools",