From ef8b40916568af0988b04538392f3cd9c51234b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Sun, 25 Jul 2021 16:53:33 +0200 Subject: [PATCH] Ignore Mypy error --- discord_reminder_bot/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/discord_reminder_bot/main.py b/discord_reminder_bot/main.py index f1d46d7..7d2a57b 100644 --- a/discord_reminder_bot/main.py +++ b/discord_reminder_bot/main.py @@ -191,8 +191,8 @@ async def remind_modify( "TO_TIMEZONE": f"{config_timezone}", }, ) - - remove_timezone_from_date = parsed_date.strftime( + # FIXME: Fix mypy error + remove_timezone_from_date = parsed_date.strftime( # type: ignore[union-attr] "%Y-%m-%d %H:%M:%S" ) @@ -493,8 +493,8 @@ async def remind_add(ctx: SlashContext, message_date: str, message_reason: str): "TO_TIMEZONE": f"{config_timezone}", }, ) - - run_date = parsed_date.strftime("%Y-%m-%d %H:%M:%S") + # FIXME: Fix mypy error + run_date = parsed_date.strftime("%Y-%m-%d %H:%M:%S") # type: ignore[union-attr] reminder = scheduler.add_job( send_to_discord, run_date=run_date,