Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 4f0c8ee

Browse files
authored
tests: downgrade mypy to 1.16.0 (#2580)
1 parent 0aa1ea2 commit 4f0c8ee

File tree

8 files changed

+24
-8
lines changed

8 files changed

+24
-8
lines changed

gapic/templates/noxfile.py.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ nox.options.error_on_missing_interpreters = True
8787
@nox.session(python=ALL_PYTHON)
8888
def mypy(session):
8989
"""Run the type checker."""
90+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2579):
91+
# use the latest version of mypy
9092
session.install(
91-
"mypy",
93+
"mypy<1.16.0",
9294
"types-requests",
9395
"types-protobuf",
9496
)

tests/integration/goldens/asset/noxfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@
9494
@nox.session(python=ALL_PYTHON)
9595
def mypy(session):
9696
"""Run the type checker."""
97+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2579):
98+
# use the latest version of mypy
9799
session.install(
98-
"mypy",
100+
"mypy<1.16.0",
99101
"types-requests",
100102
"types-protobuf",
101103
)

tests/integration/goldens/credentials/noxfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@
9494
@nox.session(python=ALL_PYTHON)
9595
def mypy(session):
9696
"""Run the type checker."""
97+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2579):
98+
# use the latest version of mypy
9799
session.install(
98-
"mypy",
100+
"mypy<1.16.0",
99101
"types-requests",
100102
"types-protobuf",
101103
)

tests/integration/goldens/eventarc/noxfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@
9494
@nox.session(python=ALL_PYTHON)
9595
def mypy(session):
9696
"""Run the type checker."""
97+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2579):
98+
# use the latest version of mypy
9799
session.install(
98-
"mypy",
100+
"mypy<1.16.0",
99101
"types-requests",
100102
"types-protobuf",
101103
)

tests/integration/goldens/logging/noxfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@
9494
@nox.session(python=ALL_PYTHON)
9595
def mypy(session):
9696
"""Run the type checker."""
97+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2579):
98+
# use the latest version of mypy
9799
session.install(
98-
"mypy",
100+
"mypy<1.16.0",
99101
"types-requests",
100102
"types-protobuf",
101103
)

tests/integration/goldens/logging_internal/noxfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@
9494
@nox.session(python=ALL_PYTHON)
9595
def mypy(session):
9696
"""Run the type checker."""
97+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2579):
98+
# use the latest version of mypy
9799
session.install(
98-
"mypy",
100+
"mypy<1.16.0",
99101
"types-requests",
100102
"types-protobuf",
101103
)

tests/integration/goldens/redis/noxfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@
9494
@nox.session(python=ALL_PYTHON)
9595
def mypy(session):
9696
"""Run the type checker."""
97+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2579):
98+
# use the latest version of mypy
9799
session.install(
98-
"mypy",
100+
"mypy<1.16.0",
99101
"types-requests",
100102
"types-protobuf",
101103
)

tests/integration/goldens/redis_selective/noxfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@
9494
@nox.session(python=ALL_PYTHON)
9595
def mypy(session):
9696
"""Run the type checker."""
97+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2579):
98+
# use the latest version of mypy
9799
session.install(
98-
"mypy",
100+
"mypy<1.16.0",
99101
"types-requests",
100102
"types-protobuf",
101103
)

0 commit comments

Comments
 (0)