used isort + black
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
from aiogram.types import (
|
||||
InlineQueryResultDocument,
|
||||
InlineQueryResultCachedAudio,
|
||||
InlineKeyboardMarkup,
|
||||
InlineKeyboardButton,
|
||||
)
|
||||
|
||||
from bot.modules.database.db import DBDict
|
||||
from bot.modules.settings import UserSettings
|
||||
|
||||
from bot.modules.common.song import BaseSongItem
|
||||
from typing import TypeVar
|
||||
|
||||
from aiogram.types import (
|
||||
InlineKeyboardButton,
|
||||
InlineKeyboardMarkup,
|
||||
InlineQueryResultCachedAudio,
|
||||
InlineQueryResultDocument,
|
||||
)
|
||||
|
||||
from bot.modules.common.song import BaseSongItem
|
||||
from bot.modules.database.db import DBDict
|
||||
from bot.modules.settings import UserSettings
|
||||
|
||||
BaseSongT = TypeVar("BaseSongT", bound=BaseSongItem)
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
from .search import get_deezer_search_results
|
||||
|
||||
|
||||
__all__ = ["get_deezer_search_results"]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from aiogram.types import InlineQueryResultDocument, InlineQueryResultCachedAudio
|
||||
from aiogram.types import InlineQueryResultCachedAudio, InlineQueryResultDocument
|
||||
|
||||
from bot.modules.deezer import deezer
|
||||
from bot.modules.database import db
|
||||
from bot.modules.deezer import deezer
|
||||
from bot.modules.settings import UserSettings
|
||||
|
||||
from ..common.search import get_common_search_result
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
from aiogram.types import (
|
||||
InlineQueryResultArticle,
|
||||
InputTextMessageContent,
|
||||
)
|
||||
|
||||
from bot.modules.database import db
|
||||
from bot.modules.error import Error
|
||||
from aiogram.types import InlineQueryResultArticle, InputTextMessageContent
|
||||
|
||||
from bot.common import console
|
||||
from bot.modules.database import db
|
||||
from bot.modules.error import Error
|
||||
|
||||
|
||||
async def get_error_search_results(
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
from .search import get_soundcloud_search_results
|
||||
|
||||
|
||||
__all__ = ["get_soundcloud_search_results"]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from aiogram.types import InlineQueryResultDocument, InlineQueryResultCachedAudio
|
||||
from aiogram.types import InlineQueryResultCachedAudio, InlineQueryResultDocument
|
||||
|
||||
from bot.modules.soundcloud import soundcloud
|
||||
from bot.modules.database import db
|
||||
from bot.modules.settings import UserSettings
|
||||
from bot.modules.soundcloud import soundcloud
|
||||
|
||||
from ..common.search import get_common_search_result
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
from .search import get_spotify_search_results
|
||||
|
||||
|
||||
__all__ = ["get_spotify_search_results"]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from aiogram.types import InlineQueryResultDocument, InlineQueryResultCachedAudio
|
||||
from aiogram.types import InlineQueryResultCachedAudio, InlineQueryResultDocument
|
||||
|
||||
from bot.modules.spotify import spotify
|
||||
from bot.modules.database import db
|
||||
from bot.modules.settings import UserSettings
|
||||
from bot.modules.spotify import spotify
|
||||
|
||||
from ..common.search import get_common_search_result
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from aiogram.types import InlineQueryResultDocument, InlineQueryResultCachedAudio
|
||||
import inspect
|
||||
|
||||
from aiogram.types import InlineQueryResultCachedAudio, InlineQueryResultDocument
|
||||
|
||||
from bot.modules.url import recognise_music_service, get_id
|
||||
from bot.modules.settings import UserSettings
|
||||
from bot.modules.url import get_id, recognise_music_service
|
||||
|
||||
from ..common.search import get_common_search_result
|
||||
|
||||
import inspect
|
||||
|
||||
|
||||
async def get_url_results(
|
||||
query: str, settings: UserSettings
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
from .search import get_youtube_search_results
|
||||
|
||||
|
||||
__all__ = ["get_youtube_search_results"]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from aiogram.types import InlineQueryResultDocument, InlineQueryResultCachedAudio
|
||||
from aiogram.types import InlineQueryResultCachedAudio, InlineQueryResultDocument
|
||||
|
||||
from bot.modules.youtube import youtube
|
||||
from bot.modules.database import db
|
||||
from bot.modules.settings import UserSettings
|
||||
from bot.modules.youtube import youtube
|
||||
|
||||
from ..common.search import get_common_search_result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user