mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
style: format code with black and isort (#271)
Format code with black and isort
This commit fixes the style issues introduced in 79d02d7 according to the output
from Black and isort.
Details: None
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
parent
a8d829120a
commit
7711d032c5
3 changed files with 12 additions and 4 deletions
|
|
@ -6,7 +6,6 @@ import json
|
|||
import os
|
||||
import pickle
|
||||
import re
|
||||
import requests
|
||||
import sys
|
||||
import traceback
|
||||
from datetime import datetime
|
||||
|
|
@ -17,6 +16,7 @@ from typing import Any, Optional, Tuple
|
|||
|
||||
import aiohttp
|
||||
import cloudscraper
|
||||
import requests
|
||||
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
from psutil import Process, boot_time, cpu_count, cpu_percent
|
||||
|
|
|
|||
|
|
@ -6,7 +6,12 @@ from logging import getLogger
|
|||
|
||||
from PIL import Image, ImageChops, ImageDraw, ImageFont
|
||||
from pyrogram import enums, filters
|
||||
from pyrogram.errors import ChatAdminRequired, MessageTooLong, RPCError, ChatWriteForbidden
|
||||
from pyrogram.errors import (
|
||||
ChatAdminRequired,
|
||||
ChatWriteForbidden,
|
||||
MessageTooLong,
|
||||
RPCError,
|
||||
)
|
||||
from pyrogram.types import ChatMemberUpdated, InlineKeyboardButton, InlineKeyboardMarkup
|
||||
|
||||
from database.users_chats_db import db
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ from pyrogram.types import (
|
|||
from database.imdb_db import add_imdbset, is_imdbset, remove_imdbset
|
||||
from misskaty import app
|
||||
from misskaty.core.decorator.ratelimiter import ratelimiter
|
||||
from misskaty.helper import GENRES_EMOJI, Cache, get_random_string, fetch, search_jw
|
||||
from misskaty.helper import GENRES_EMOJI, Cache, fetch, get_random_string, search_jw
|
||||
from utils import demoji
|
||||
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
|
|
@ -128,6 +128,7 @@ async def imdbsetlang(_, query: CallbackQuery):
|
|||
except (MessageIdInvalid, MessageNotModified):
|
||||
pass
|
||||
|
||||
|
||||
async def imdb_search_id(kueri, message):
|
||||
BTN = []
|
||||
k = await message.reply_photo(
|
||||
|
|
@ -258,7 +259,9 @@ async def imdbcari(_, query: CallbackQuery):
|
|||
except KeyError:
|
||||
return await query.message.edit_caption("⚠️ Callback Query Sudah Expired!")
|
||||
try:
|
||||
await query.message.edit_caption("<i>🔎 Sedang mencari di Database IMDB..</i>")
|
||||
await query.message.edit_caption(
|
||||
"<i>🔎 Sedang mencari di Database IMDB..</i>"
|
||||
)
|
||||
except (MessageIdInvalid, MessageNotModified):
|
||||
pass
|
||||
msg = ""
|
||||
|
|
|
|||
Loading…
Reference in a new issue