Ignore Mypy error

This commit is contained in:
2021-07-25 16:53:33 +02:00
parent e386fb6ea0
commit ef8b409165

View File

@ -191,8 +191,8 @@ async def remind_modify(
"TO_TIMEZONE": f"{config_timezone}", "TO_TIMEZONE": f"{config_timezone}",
}, },
) )
# FIXME: Fix mypy error
remove_timezone_from_date = parsed_date.strftime( remove_timezone_from_date = parsed_date.strftime( # type: ignore[union-attr]
"%Y-%m-%d %H:%M:%S" "%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}", "TO_TIMEZONE": f"{config_timezone}",
}, },
) )
# FIXME: Fix mypy error
run_date = parsed_date.strftime("%Y-%m-%d %H:%M:%S") run_date = parsed_date.strftime("%Y-%m-%d %H:%M:%S") # type: ignore[union-attr]
reminder = scheduler.add_job( reminder = scheduler.add_job(
send_to_discord, send_to_discord,
run_date=run_date, run_date=run_date,