Skip to content

Commit 7a3153c

Browse files
committed
Correctly mark function args as unused
1 parent bbd1fbd commit 7a3153c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

bot/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def on_ready(self) -> None:
4848

4949
async def on_command_error(
5050
self,
51-
ctx: Context | discord.Interaction, # noqa: ARG002
51+
_ctx: Context | discord.Interaction,
5252
exception: CommandError | discord.app_commands.AppCommandError,
5353
) -> None:
5454
"""Fired when exception happens."""

bot/cogs/chess/views/_random_chess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def select_random_move(self) -> None:
2525
self.available_moves.remove(self.current_move)
2626

2727
@discord.ui.button(label="Next Move", style=discord.ButtonStyle.success)
28-
async def next_move(self, interaction: discord.Interaction, _: discord.ui.Button) -> None:
28+
async def next_move(self, interaction: discord.Interaction, _button: discord.ui.Button) -> None:
2929
"""Next move button handler."""
3030
if self.current_player is Player.Black:
3131
self.turn_number += 1
@@ -38,7 +38,7 @@ async def next_move(self, interaction: discord.Interaction, _: discord.ui.Button
3838
await interaction.message.edit(embed=self.generate_embed(), view=self)
3939

4040
@discord.ui.button(label="Invalid Move", style=discord.ButtonStyle.danger)
41-
async def invalid_move(self, interaction: discord.Interaction, _: discord.ui.Button) -> None:
41+
async def invalid_move(self, interaction: discord.Interaction, _button: discord.ui.Button) -> None:
4242
"""Invalid move button handler."""
4343
self.select_random_move()
4444
await interaction.response.defer()

0 commit comments

Comments
 (0)