From 02d9ba8eddd9224f307e37630e411f2146bbbe4c Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Mon, 8 Jan 2018 06:37:14 -0800 Subject: [PATCH] mypy: Add cast for zephyr_mirror_backend logger variable. --- zulip/integrations/zephyr/zephyr_mirror_backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zulip/integrations/zephyr/zephyr_mirror_backend.py b/zulip/integrations/zephyr/zephyr_mirror_backend.py index 3ba4545..29b65a7 100755 --- a/zulip/integrations/zephyr/zephyr_mirror_backend.py +++ b/zulip/integrations/zephyr/zephyr_mirror_backend.py @@ -21,7 +21,7 @@ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. from __future__ import absolute_import -from typing import IO, Any, Dict, List, Text, Union, Set, Tuple, Optional +from typing import IO, Any, Dict, List, Text, Union, Set, Tuple, Optional, cast from types import FrameType import sys @@ -48,7 +48,7 @@ class States(object): Startup, ZulipToZephyr, ZephyrToZulip, ChildSending = list(range(4)) CURRENT_STATE = States.Startup -logger = None # type: logging.Logger +logger = cast(logging.Logger, None) # type: logging.Logger # FIXME cast should not be needed? def to_zulip_username(zephyr_username): # type: (str) -> str