mirror of https://github.com/zulip/zulip.git
Purge 'from typing import *' from zerver/.
This is a partial implementation of #636.
This commit is contained in:
parent
5f03c1444e
commit
4e1060076d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from __future__ import absolute_import
|
||||
from typing import *
|
||||
from typing import Tuple
|
||||
|
||||
from collections import defaultdict
|
||||
import datetime
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from __future__ import absolute_import
|
||||
from typing import *
|
||||
from typing import Any, Tuple
|
||||
|
||||
import sys
|
||||
import time
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from typing import *
|
||||
from typing import Tuple
|
||||
|
||||
import logging
|
||||
import time
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue