From 81601237d2f7d6b50c845f47875ba2ed9f73f2b8 Mon Sep 17 00:00:00 2001 From: Solumath Date: Fri, 5 Apr 2024 17:59:39 +0200 Subject: [PATCH] mypy fix: fun --- cogs/fun/cog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/fun/cog.py b/cogs/fun/cog.py index 8c3c6fb57..7f11e1c71 100644 --- a/cogs/fun/cog.py +++ b/cogs/fun/cog.py @@ -33,7 +33,7 @@ def __init__(self, bot: commands.Bot): def custom_footer(self, author, url) -> str: return f"📩 {author} | {url} • {datetime.now().strftime('%d.%m.%Y %H:%M')}" - async def get_image(self, inter, url) -> tuple[BytesIO, str] | None: + async def get_image(self, inter, url) -> tuple[BytesIO, str]: async with aiohttp.ClientSession() as session: # get random image url async with session.get(url) as response: