From 2b386921f0153fef392e9d2431cda414d8cd5e4e Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 7 Apr 2016 14:11:21 -0700 Subject: [PATCH] Finish purging 'fromt typing import *' from Zulip codebase. --- bots/jabber_mirror_backend.py | 2 +- bots/summarize_stream.py | 2 +- bots/zephyr_mirror_backend.py | 2 +- setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bots/jabber_mirror_backend.py b/bots/jabber_mirror_backend.py index 60bec45..9d4645b 100755 --- a/bots/jabber_mirror_backend.py +++ b/bots/jabber_mirror_backend.py @@ -37,7 +37,7 @@ # | other sender| x | | | # public mode +-------------+-----+----+--------+---- # | self sender | | | | -from typing import * +from typing import Set import logging import threading diff --git a/bots/summarize_stream.py b/bots/summarize_stream.py index 3b4da8c..b27c68a 100644 --- a/bots/summarize_stream.py +++ b/bots/summarize_stream.py @@ -1,5 +1,5 @@ from __future__ import print_function -from typing import * +from typing import Any, Dict, List # This is hacky code to analyze data on our support stream. The main # reusable bits are get_recent_messages and get_words. diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index aac3168..44a253f 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/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 * +from typing import Any, List import sys from six.moves import map diff --git a/setup.py b/setup.py index 939bb6d..d26eaab 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- from __future__ import print_function -from typing import * +from typing import Any, Generator, List, Tuple import os import sys