mypy: Amend code & typing of integrations, to pass with strict-optional.

This commit is contained in:
neiljp (Neil Pilgrim) 2017-12-22 09:51:14 -08:00 committed by showell
parent 08bfe9d8c7
commit 33ccc04a32
6 changed files with 15 additions and 13 deletions

View file

@ -8,9 +8,11 @@ from oauth2client import client
from oauth2client import tools
from oauth2client.file import Storage
from typing import Optional
try:
import argparse
flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args()
flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args() # type: Optional[argparse.Namespace]
except ImportError:
flags = None