mypy: Assert Zulip.[api_key|email] are not None, satisfying use in Zephyr.

This commit is contained in:
neiljp (Neil Pilgrim) 2018-01-08 07:02:42 -08:00 committed by showell
parent aa718da3e1
commit afee6d706f

View file

@ -337,6 +337,7 @@ class Client(object):
raise RuntimeError("api_key or email not specified and file %s does not exist" raise RuntimeError("api_key or email not specified and file %s does not exist"
% (config_file,)) % (config_file,))
assert(api_key is not None and email is not None)
self.api_key = api_key self.api_key = api_key
self.email = email self.email = email
self.verbose = verbose self.verbose = verbose