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

Commit ffd53ad

Browse files
committed
updated mypy in other noxfiles
1 parent 7189985 commit ffd53ad

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

gapic/ads-templates/noxfile.py.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,7 @@ def mypy(session):
5252
{% else %}
5353
'{{ api.naming.versioned_module_name }}',
5454
{% endif %}
55+
"--check-untyped-defs",
56+
*session.posargs,
5557
)
5658
{% endblock %}

noxfile.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,7 @@ def showcase_mypy(
607607
"""Perform typecheck analysis on the generated Showcase library."""
608608

609609
session.install(
610-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
611-
"mypy<1.16.0",
610+
"mypy",
612611
"types-setuptools",
613612
"types-protobuf",
614613
"types-requests",
@@ -619,7 +618,7 @@ def showcase_mypy(
619618
session.chdir(lib)
620619

621620
# Run the tests.
622-
session.run("mypy", "-p", "google")
621+
session.run("mypy", "-p", "google", "--check-untyped-defs")
623622

624623

625624
@nox.session(python=NEWEST_PYTHON)

0 commit comments

Comments
 (0)