Fix F401 - unused imports
This commit is contained in:
Родитель
4e9b265ee3
Коммит
663a080746
|
@ -1,6 +1,5 @@
|
|||
import vobject
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
from rest_framework import renderers
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from django.core.management.base import BaseCommand, CommandError
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from ...models import Profile
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import json
|
||||
import pathlib
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# Generated by Django 2.2.2 on 2019-06-12 20:47
|
||||
import uuid
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Generated by Django 2.2.24 on 2021-10-15 05:22
|
||||
|
||||
from django.db import migrations, models
|
||||
from django.db import migrations
|
||||
|
||||
from emails.models import hash_subdomain
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
from datetime import datetime, timezone, timedelta
|
||||
from unittest.mock import ANY, patch
|
||||
import json
|
||||
import logging
|
||||
|
||||
|
@ -7,8 +6,6 @@ import pytest
|
|||
|
||||
from django.core.management import call_command, CommandError
|
||||
|
||||
from emails.management.commands.check_health import Command
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def test_settings(settings, tmp_path):
|
||||
|
|
|
@ -11,7 +11,7 @@ Changes:
|
|||
"""
|
||||
|
||||
from collections.abc import Sequence
|
||||
from typing import Any, Callable, Generic, Optional, TypeVar, Union, overload
|
||||
from typing import Any, Callable, Generic, TypeVar, Union, overload
|
||||
|
||||
# Unreleased as of 3.6 - accepts a bool
|
||||
# def strtobool(value: Union[str, bool]) -> bool: ...
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
Counts = dict[str, dict[str, int]]
|
||||
CleanupData = dict[str, Any]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from __future__ import annotations
|
||||
from argparse import RawDescriptionHelpFormatter
|
||||
from shutil import get_terminal_size
|
||||
from typing import Any, Optional, TYPE_CHECKING
|
||||
from typing import Any, TYPE_CHECKING
|
||||
|
||||
import textwrap
|
||||
import logging
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from datetime import datetime, timezone
|
||||
from functools import lru_cache
|
||||
from hashlib import sha256
|
||||
from typing import Any, Optional, TypedDict
|
||||
from typing import Any, TypedDict
|
||||
from collections.abc import Iterable
|
||||
import json
|
||||
import logging
|
||||
|
|
Загрузка…
Ссылка в новой задаче