Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable static type checking with pytype #298

Merged
merged 11 commits into from
Oct 5, 2018
Prev Previous commit
Next Next commit
Fix lint errors from pytype directives.
  • Loading branch information
Solumin committed Sep 19, 2018
commit 1b69b1e9f95570bf8f053fef1efaff21679d0ee2
3 changes: 2 additions & 1 deletion google/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__) # pytype: disable=name-error
__path__ = pkgutil.extend_path(__path__, # pytype: disable=name-error
__name__)
4 changes: 3 additions & 1 deletion google/auth/app_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@
from google.auth import credentials
from google.auth import crypt

# pytype: disable=import-error
try:
from google.appengine.api import app_identity # pytype: disable=import-error
from google.appengine.api import app_identity
except ImportError:
app_identity = None
# pytype: enable=import-error


class Signer(crypt.Signer):
Expand Down