mirror of https://github.com/zulip/zulip.git
zilencer: Remove unused imports (F401).
This commit is contained in:
parent
3c083a99dc
commit
995b300840
|
@ -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):
|
||||
|
|
|
@ -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, \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue