Purge 'from typing import *' from zerver/.

This is a partial implementation of #636.
This commit is contained in:
Varshit 2016-04-08 01:21:29 +05:30 committed by Tim Abbott
parent 5f03c1444e
commit 4e1060076d
20 changed files with 19 additions and 20 deletions

View File

@ -1,5 +1,5 @@
from __future__ import absolute_import
from typing import *
from typing import Any, Generator, Tuple
import re
from django.contrib.staticfiles.finders import FileSystemFinder

View File

@ -1,6 +1,6 @@
from __future__ import absolute_import
from __future__ import print_function
from typing import *
from typing import Tuple
from django.conf import settings
from django.core import validators

View File

@ -1,7 +1,7 @@
from __future__ import absolute_import
# Zulip's main markdown implementation. See docs/markdown.md for
# detailed documentation on our markdown syntax.
from typing import *
from typing import Any
import codecs
import markdown

View File

@ -1,5 +1,5 @@
from __future__ import absolute_import
from typing import *
from typing import Any
# This file needs to be different from cache.py because cache.py
# cannot import anything from zerver.models or we'd have an import

View File

@ -1,5 +1,5 @@
from __future__ import absolute_import
from typing import *
from typing import Tuple
from collections import defaultdict
import datetime

View File

@ -1,5 +1,5 @@
from __future__ import absolute_import
from typing import *
from typing import Any
from django.conf import settings
from django.utils.timezone import now

View File

@ -1,6 +1,6 @@
import logging
from zerver.middleware import async_request_restart
from typing import *
from typing import Any
current_handler_id = 0
handlers = {} # type: Dict[int, Any] # TODO: Should be AsyncDjangoHandler but we don't important runtornado.py.

View File

@ -1,5 +1,5 @@
from __future__ import print_function
from typing import *
from typing import Any, Tuple
from confirmation.models import Confirmation
from django.conf import settings

View File

@ -1,6 +1,6 @@
from __future__ import absolute_import
from __future__ import print_function
from typing import *
from typing import Any, Generator, Iterable, Tuple
import os
import pty

View File

@ -11,7 +11,7 @@ import atexit
from collections import defaultdict
from zerver.lib.utils import statsd
from typing import *
from typing import Any, Callable
# This simple queuing library doesn't expose much of the power of
# rabbitmq/pika's queuing system; its purpose is to just provide an

View File

@ -1,5 +1,5 @@
from __future__ import absolute_import
from typing import *
from typing import Any
from django.conf import settings
from django.utils.importlib import import_module

View File

@ -1,5 +1,5 @@
from __future__ import absolute_import
from typing import *
from typing import Any, Callable, Generator, Iterable, Tuple
from django.test import TestCase

View File

@ -1,5 +1,5 @@
from __future__ import absolute_import
from typing import *
from typing import Any, Tuple
import sys
import time

View File

@ -1,6 +1,6 @@
from __future__ import absolute_import
from __future__ import division
from typing import *
from typing import Tuple
import logging
import time

View File

@ -1,6 +1,5 @@
from __future__ import absolute_import
from __future__ import print_function
from typing import *
from django.conf import settings
settings.RUNNING_INSIDE_TORNADO = True

View File

@ -1,5 +1,5 @@
from __future__ import absolute_import
from typing import *
from typing import Any, Tuple
from django.db import models
from django.conf import settings

View File

@ -1,5 +1,5 @@
from __future__ import absolute_import
from typing import *
from typing import Any
from django.conf import settings
from django.contrib.auth import authenticate, login, get_backends

View File

@ -1,5 +1,5 @@
from __future__ import absolute_import
from typing import *
from typing import Any
from django.conf import settings
from django.db import transaction

View File

@ -7,7 +7,7 @@ from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_vi
import pprint
import ujson
from typing import Dict
from typing import Dict, Any
PAGER_DUTY_EVENT_NAMES = {

View File

@ -1,5 +1,5 @@
from __future__ import absolute_import
from typing import *
from typing import Any
from django.conf import settings
from django.core.handlers.wsgi import WSGIRequest