From 608275aa923f495520dea8ebddb94a99f26e27a5 Mon Sep 17 00:00:00 2001 From: yon-mg <71726126+yon-mg@users.noreply.github.com> Date: Thu, 28 Jan 2021 14:03:33 -0800 Subject: [PATCH] fix: mypy 0.800 update errors (#754) --- .../tests/unit/gapic/%name_%version/%sub/__init__.py | 0 gapic/templates/noxfile.py.j2 | 1 + noxfile.py | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 gapic/ads-templates/tests/unit/gapic/%name_%version/%sub/__init__.py 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")