diff --git a/gapic/templates/noxfile.py.j2 b/gapic/templates/noxfile.py.j2 index c0007f3656..0a56475319 100644 --- a/gapic/templates/noxfile.py.j2 +++ b/gapic/templates/noxfile.py.j2 @@ -87,8 +87,10 @@ nox.options.error_on_missing_interpreters = True @nox.session(python=ALL_PYTHON) def mypy(session): """Run the type checker.""" + # TODO(https://github.com/googleapis/gapic-generator-python/issues/2579): + # use the latest version of mypy session.install( - "mypy", + "mypy<1.16.0", "types-requests", "types-protobuf", ) diff --git a/tests/integration/goldens/asset/noxfile.py b/tests/integration/goldens/asset/noxfile.py index 44c1b6cc0d..66c7f74455 100755 --- a/tests/integration/goldens/asset/noxfile.py +++ b/tests/integration/goldens/asset/noxfile.py @@ -94,8 +94,10 @@ @nox.session(python=ALL_PYTHON) def mypy(session): """Run the type checker.""" + # TODO(https://github.com/googleapis/gapic-generator-python/issues/2579): + # use the latest version of mypy session.install( - "mypy", + "mypy<1.16.0", "types-requests", "types-protobuf", ) diff --git a/tests/integration/goldens/credentials/noxfile.py b/tests/integration/goldens/credentials/noxfile.py index f05fa52799..2b7f7c028a 100755 --- a/tests/integration/goldens/credentials/noxfile.py +++ b/tests/integration/goldens/credentials/noxfile.py @@ -94,8 +94,10 @@ @nox.session(python=ALL_PYTHON) def mypy(session): """Run the type checker.""" + # TODO(https://github.com/googleapis/gapic-generator-python/issues/2579): + # use the latest version of mypy session.install( - "mypy", + "mypy<1.16.0", "types-requests", "types-protobuf", ) diff --git a/tests/integration/goldens/eventarc/noxfile.py b/tests/integration/goldens/eventarc/noxfile.py index 0d69beeb6f..f789597700 100755 --- a/tests/integration/goldens/eventarc/noxfile.py +++ b/tests/integration/goldens/eventarc/noxfile.py @@ -94,8 +94,10 @@ @nox.session(python=ALL_PYTHON) def mypy(session): """Run the type checker.""" + # TODO(https://github.com/googleapis/gapic-generator-python/issues/2579): + # use the latest version of mypy session.install( - "mypy", + "mypy<1.16.0", "types-requests", "types-protobuf", ) diff --git a/tests/integration/goldens/logging/noxfile.py b/tests/integration/goldens/logging/noxfile.py index 48a2c48d41..35e16d68aa 100755 --- a/tests/integration/goldens/logging/noxfile.py +++ b/tests/integration/goldens/logging/noxfile.py @@ -94,8 +94,10 @@ @nox.session(python=ALL_PYTHON) def mypy(session): """Run the type checker.""" + # TODO(https://github.com/googleapis/gapic-generator-python/issues/2579): + # use the latest version of mypy session.install( - "mypy", + "mypy<1.16.0", "types-requests", "types-protobuf", ) diff --git a/tests/integration/goldens/logging_internal/noxfile.py b/tests/integration/goldens/logging_internal/noxfile.py index 48a2c48d41..35e16d68aa 100755 --- a/tests/integration/goldens/logging_internal/noxfile.py +++ b/tests/integration/goldens/logging_internal/noxfile.py @@ -94,8 +94,10 @@ @nox.session(python=ALL_PYTHON) def mypy(session): """Run the type checker.""" + # TODO(https://github.com/googleapis/gapic-generator-python/issues/2579): + # use the latest version of mypy session.install( - "mypy", + "mypy<1.16.0", "types-requests", "types-protobuf", ) diff --git a/tests/integration/goldens/redis/noxfile.py b/tests/integration/goldens/redis/noxfile.py index 91cbc745dc..053463e94f 100755 --- a/tests/integration/goldens/redis/noxfile.py +++ b/tests/integration/goldens/redis/noxfile.py @@ -94,8 +94,10 @@ @nox.session(python=ALL_PYTHON) def mypy(session): """Run the type checker.""" + # TODO(https://github.com/googleapis/gapic-generator-python/issues/2579): + # use the latest version of mypy session.install( - "mypy", + "mypy<1.16.0", "types-requests", "types-protobuf", ) diff --git a/tests/integration/goldens/redis_selective/noxfile.py b/tests/integration/goldens/redis_selective/noxfile.py index 91cbc745dc..053463e94f 100755 --- a/tests/integration/goldens/redis_selective/noxfile.py +++ b/tests/integration/goldens/redis_selective/noxfile.py @@ -94,8 +94,10 @@ @nox.session(python=ALL_PYTHON) def mypy(session): """Run the type checker.""" + # TODO(https://github.com/googleapis/gapic-generator-python/issues/2579): + # use the latest version of mypy session.install( - "mypy", + "mypy<1.16.0", "types-requests", "types-protobuf", )