Apply fixed for ruff smells.

This commit is contained in:
2025-02-17 16:39:10 -05:00
parent ba04858328
commit c62b87c7f7
2 changed files with 27 additions and 37 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
"""View for verification buttons"""
"""View for verification buttons."""
import nextcord
@@ -7,18 +7,18 @@ from utilities.utils import submit_score
class VerificationView(nextcord.ui.View):
"""Defines views for verifying score submissions"""
"""Defines views for verifying score submissions."""
def __init__(self):
def __init__(self) -> None:
super().__init__(timeout=None)
@nextcord.ui.button(label="Deny", style=nextcord.ButtonStyle.red, custom_id="deny-button-submission")
async def deny_button(self, button: nextcord.ui.Button, interaction: nextcord.Interaction): # pylint: disable=unused-argument
async def deny_button(self, button: nextcord.ui.Button, interaction: nextcord.Interaction) -> None: # noqa: ARG002
"""Button for denying score submission."""
await interaction.message.delete()
@nextcord.ui.button(label="Approve", style=nextcord.ButtonStyle.green, custom_id="approve-button-submission")
async def approve_button(self, button: nextcord.ui.Button, interaction: nextcord.Interaction): # pylint: disable=unused-argument
async def approve_button(self, button: nextcord.ui.Button, interaction: nextcord.Interaction) -> None: # noqa: ARG002
"""Button for approving score submission."""
for embed in interaction.message.embeds:
content = embed.to_dict()