Skip to content

Commit f303e8d

Browse files
committed
pylint: auto fixes
1 parent c2afd5a commit f303e8d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

plugins/logo.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from core import rm
66
from PIL import Image, ImageDraw, ImageFont
7-
from telethon.tl.types import InputMessagesFilterPhotos
87
from utilities.helper import download_file, mediainfo
98

109
from . import check_filename, get_string, inline_mention, ultroid_cmd
@@ -86,9 +85,6 @@ async def logo_func(event):
8685
os.remove(bg_)
8786

8887

89-
90-
91-
9288
class LogoHelper:
9389
@staticmethod
9490
def get_text_size(text, image, font):
@@ -102,7 +98,8 @@ def find_font_size(text, font, image, target_width_ratio):
10298
tested_font = ImageFont.truetype(font, tested_font_size)
10399
observed_width = LogoHelper.get_text_size(text, image, tested_font)
104100
estimated_font_size = (
105-
tested_font_size / (observed_width / image.width) * target_width_ratio
101+
tested_font_size / (observed_width /
102+
image.width) * target_width_ratio
106103
)
107104
return round(estimated_font_size)
108105

0 commit comments

Comments
 (0)