From 13bf6f7262ad997d0105b4ba937606b819f21112 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Sun, 7 Jan 2018 08:08:45 -0800 Subject: [PATCH] mypy: Add non-None session assertion in Zulip API. --- zulip/zulip/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 1247dd8..2f9c706 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -461,6 +461,7 @@ class Client(object): req_files.append((f.name, f)) self.ensure_session() + assert(self.session is not None) query_state = { 'had_error_retry': False,