used black
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
from aiogram.types import (
|
||||
InlineQueryResultDocument, InlineQueryResultCachedAudio
|
||||
)
|
||||
from aiogram.types import InlineQueryResultDocument, InlineQueryResultCachedAudio
|
||||
|
||||
from bot.modules.url import recognise_music_service, get_id
|
||||
from bot.modules.settings import UserSettings
|
||||
@@ -10,9 +8,9 @@ from ..common.search import get_common_search_result
|
||||
import inspect
|
||||
|
||||
|
||||
async def get_url_results(query: str, settings: UserSettings) -> list[
|
||||
InlineQueryResultDocument | InlineQueryResultCachedAudio
|
||||
]:
|
||||
async def get_url_results(
|
||||
query: str, settings: UserSettings
|
||||
) -> list[InlineQueryResultDocument | InlineQueryResultCachedAudio]:
|
||||
service = recognise_music_service(query)
|
||||
if inspect.iscoroutinefunction(service.by_id_func):
|
||||
audio = await service.by_id_func(await get_id(service))
|
||||
@@ -26,6 +24,6 @@ async def get_url_results(query: str, settings: UserSettings) -> list[
|
||||
audio=audio,
|
||||
db_table=service.db_table,
|
||||
service_id=service.name,
|
||||
settings=settings
|
||||
settings=settings,
|
||||
)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user