diff --git a/gapic/ads-templates/tests/unit/gapic/%name_%version/%sub/__init__.py b/gapic/ads-templates/tests/unit/gapic/%name_%version/%sub/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/gapic/templates/noxfile.py.j2 b/gapic/templates/noxfile.py.j2 index ee97ea01cb..b6225d867d 100644 --- a/gapic/templates/noxfile.py.j2 +++ b/gapic/templates/noxfile.py.j2 @@ -32,6 +32,7 @@ def mypy(session): session.install('.') session.run( 'mypy', + '--explicit-package-bases', {%- if api.naming.module_namespace %} '{{ api.naming.module_namespace[0] }}', {%- else %} diff --git a/noxfile.py b/noxfile.py index a50376efe1..7dbe33ebc3 100644 --- a/noxfile.py +++ b/noxfile.py @@ -227,7 +227,7 @@ def showcase_mypy( session.chdir(lib) # Run the tests. - session.run("mypy", "google") + session.run("mypy", "--explicit-package-bases", "google") @nox.session(python="3.8")