From 771d59001b0f3ec9c7b49bb4d4487471c064de21 Mon Sep 17 00:00:00 2001 From: FirePlank <44502537+FirePlank@users.noreply.github.com> Date: Thu, 30 Nov 2023 20:07:52 +0200 Subject: [PATCH] grudgingly did the suggested changes --- bot/extensions/polls/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/extensions/polls/views.py b/bot/extensions/polls/views.py index 6712d377..0c729aa3 100644 --- a/bot/extensions/polls/views.py +++ b/bot/extensions/polls/views.py @@ -1,7 +1,7 @@ import typing as t import discord -from discord import Interaction, ui +from discord import ui from bot import core from bot.extensions.polls.utils import emojis @@ -119,5 +119,5 @@ async def create_poll(self, interaction: core.InteractionType, _button: ui.Butto for i in range(0, len(embed.fields)): await message.add_reaction(emojis[i]) - async def on_error(self, interaction: Interaction, _error: Exception, _item: ui.Item[t.Any], /) -> None: + async def on_error(self, interaction: core.InteractionType, _error: Exception, _item: ui.Item[t.Any], /) -> None: await interaction.client.on_error("poll_view")