mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-31 10:14:51 +00:00
style: format code with isort
Format code with isort
This commit fixes the style issues introduced in bb1300d according to the output
from isort.
Details: https://app.deepsource.com/gh/yasirarism/MissKatyPyro/transform/aa2c771f-1316-444a-a1f3-bb240aff7364/
This commit is contained in:
parent
bb1300d8cb
commit
4ccdc7b2ee
3 changed files with 10 additions and 17 deletions
|
|
@ -2,9 +2,11 @@ from datetime import datetime, timedelta
|
|||
from re import findall
|
||||
from re import sub as re_sub
|
||||
from string import ascii_lowercase
|
||||
from misskaty import app
|
||||
|
||||
from pyrogram import enums
|
||||
|
||||
from misskaty import app
|
||||
|
||||
|
||||
def get_urls_from_text(text: str) -> bool:
|
||||
regex = r"""(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]
|
||||
|
|
|
|||
|
|
@ -15,21 +15,16 @@ from pykeyboard import InlineButton, InlineKeyboard
|
|||
from pyrogram import __version__ as pyrover
|
||||
from pyrogram import enums, filters
|
||||
from pyrogram.errors import MessageIdInvalid, MessageNotModified
|
||||
from pyrogram.types import (
|
||||
InlineKeyboardButton,
|
||||
InlineKeyboardMarkup,
|
||||
InlineQuery,
|
||||
InlineQueryResultArticle,
|
||||
InlineQueryResultPhoto,
|
||||
InputTextMessageContent,
|
||||
)
|
||||
from pyrogram.types import (InlineKeyboardButton, InlineKeyboardMarkup,
|
||||
InlineQuery, InlineQueryResultArticle,
|
||||
InlineQueryResultPhoto, InputTextMessageContent)
|
||||
|
||||
from misskaty import BOT_USERNAME, app, user
|
||||
from misskaty.plugins.dev import shell_exec
|
||||
from misskaty.vars import USER_SESSION
|
||||
from misskaty.core.decorator.ratelimiter import ratelimiter
|
||||
from misskaty.helper import GENRES_EMOJI, http, post_to_telegraph, search_jw
|
||||
from misskaty.plugins.dev import shell_exec
|
||||
from misskaty.plugins.misc_tools import get_content
|
||||
from misskaty.vars import USER_SESSION
|
||||
from utils import demoji
|
||||
|
||||
__MODULE__ = "InlineFeature"
|
||||
|
|
|
|||
|
|
@ -13,12 +13,8 @@ from time import time
|
|||
from urllib.parse import unquote
|
||||
|
||||
from pyrogram import Client, filters
|
||||
from pyrogram.types import (
|
||||
CallbackQuery,
|
||||
InlineKeyboardButton,
|
||||
InlineKeyboardMarkup,
|
||||
Message,
|
||||
)
|
||||
from pyrogram.types import (CallbackQuery, InlineKeyboardButton,
|
||||
InlineKeyboardMarkup, Message)
|
||||
|
||||
from misskaty import app
|
||||
from misskaty.core.decorator.errors import capture_err
|
||||
|
|
|
|||
Loading…
Reference in a new issue