From 9f40f5324aea7ca8b212964b30a58698e29df172 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim Date: Tue, 8 Jun 2021 23:30:24 +0000 Subject: [PATCH] test: install types-pkg-resources for mypy --- gapic/templates/noxfile.py.j2 | 2 +- noxfile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gapic/templates/noxfile.py.j2 b/gapic/templates/noxfile.py.j2 index c2d08a4807..d3e9b2ce92 100644 --- a/gapic/templates/noxfile.py.j2 +++ b/gapic/templates/noxfile.py.j2 @@ -59,7 +59,7 @@ def cover(session): @nox.session(python=['3.6', '3.7']) def mypy(session): """Run the type checker.""" - session.install('mypy') + session.install('mypy', 'types-pkg_resources') session.install('.') session.run( 'mypy', diff --git a/noxfile.py b/noxfile.py index 7538d4cd9b..bf5e378d97 100644 --- a/noxfile.py +++ b/noxfile.py @@ -273,7 +273,7 @@ def showcase_mypy( """Perform typecheck analysis on the generated Showcase library.""" # Install pytest and gapic-generator-python - session.install("mypy") + session.install("mypy", "types-pkg-resources") with showcase_library(session, templates=templates, other_opts=other_opts) as lib: session.chdir(lib)