zilencer: Remove unused imports (F401).

This commit is contained in:
rht 2017-11-02 12:39:10 +01:00 committed by Tim Abbott
parent 3c083a99dc
commit 995b300840
6 changed files with 4 additions and 10 deletions

View File

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from zerver.lib.actions import create_stream_if_needed, \
internal_prep_stream_message, do_create_user, do_send_messages, \
@ -8,8 +7,6 @@ from zerver.lib.actions import create_stream_if_needed, \
from zerver.lib.upload import upload_avatar_image
from zerver.models import get_realm, UserProfile, Message
import argparse
from datetime import datetime
from typing import Any, Dict, List
class Command(BaseCommand):

View File

@ -1,4 +1,3 @@
from django.core.management.base import BaseCommand
from zerver.lib.actions import do_create_user, do_create_realm
from zerver.lib.management import ZulipBaseCommand
from zerver.lib.onboarding import setup_initial_streams, \

View File

@ -1,4 +1,4 @@
from django.core.management.base import BaseCommand, CommandParser
from django.core.management.base import CommandParser
from zerver.lib.actions import do_create_user
from zerver.lib.management import ZulipBaseCommand
from zerver.models import Realm, UserProfile

View File

@ -1,6 +1,5 @@
from django.db import models
from django.db.models import Manager
from typing import Dict, Optional, Text
from typing import Text
import zerver.models
import datetime

View File

@ -4,7 +4,6 @@ from typing import Any
from zerver.lib.rest import rest_dispatch
import zilencer.views
import zerver.views.report
i18n_urlpatterns = [] # type: Any

View File

@ -10,8 +10,8 @@ from zerver.lib.push_notifications import send_android_push_notification, \
send_apple_push_notification
from zerver.lib.response import json_error, json_success
from zerver.lib.request import has_request_variables, REQ
from zerver.lib.validator import check_dict, check_int
from zerver.models import UserProfile, PushDeviceToken, Realm
from zerver.lib.validator import check_int
from zerver.models import UserProfile
from zerver.views.push_notifications import validate_token
from typing import Any, Dict, Optional, Union, Text, cast