From afee6d706fea4cb7574795c2f08d8cdfd8091f15 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Mon, 8 Jan 2018 07:02:42 -0800 Subject: [PATCH] mypy: Assert Zulip.[api_key|email] are not None, satisfying use in Zephyr. --- zulip/zulip/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 67faadb..6853cc3 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -337,6 +337,7 @@ class Client(object): raise RuntimeError("api_key or email not specified and file %s does not exist" % (config_file,)) + assert(api_key is not None and email is not None) self.api_key = api_key self.email = email self.verbose = verbose