diff options
author | Tres Seaver <tseaver@palladion.com> | 2021-11-18 14:58:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 14:58:20 -0500 |
commit | bc0abe48e1270d58245d04ba0bd5f878fa945c69 (patch) | |
tree | 52b5f2df9e90f6c68926b537e25511b21a804490 | |
parent | 4b407899cdcaaada0e1b9e12fbf8213690402ce5 (diff) | |
download | python-api-core-bc0abe48e1270d58245d04ba0bd5f878fa945c69.tar.gz |
ci: tweak mypy to check 'google.protobuf' (#310)
Install the 'types-protobuf' package in support.
-rw-r--r-- | google/__init__.py | 1 | ||||
-rw-r--r-- | mypy.ini | 3 | ||||
-rw-r--r-- | noxfile.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/google/__init__.py b/google/__init__.py index 70a7bd9..9f1d549 100644 --- a/google/__init__.py +++ b/google/__init__.py @@ -21,4 +21,5 @@ try: except ImportError: import pkgutil + # See: https://github.com/python/mypy/issues/1422 __path__ = pkgutil.extend_path(__path__, __name__) # type: ignore @@ -2,6 +2,3 @@ python_version = 3.6 namespace_packages = True ignore_missing_imports = True - -[mypy-google.protobuf] -ignore_missing_imports = True @@ -170,7 +170,9 @@ def pytype(session): def mypy(session): """Run type-checking.""" session.install(".[grpc, grpcgcp]", "mypy") - session.install("types-setuptools", "types-requests", "types-mock") + session.install( + "types-setuptools", "types-requests", "types-protobuf", "types-mock" + ) session.run("mypy", "google", "tests") |