mypy: Amend code & typing of integrations, to pass with strict-optional.
This commit is contained in:
parent
08bfe9d8c7
commit
33ccc04a32
6 changed files with 15 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue