Skip to content

Commit

Permalink
fixup: satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
arily committed Dec 12, 2024
1 parent 2d8efe3 commit ad8fa15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def help_pure(
pool_commands = CommandSet("pool", "Mappool commands.")
clan_commands = CommandSet("clan", "Clan commands.")

regular_commands = []
regular_commands: list[Command] = []
command_sets = [
mp_commands,
pool_commands,
Expand Down Expand Up @@ -2537,6 +2537,8 @@ async def process_commands(
# case-insensitive triggers
trigger = trigger.lower()

commands: Sequence[CommandSet | Command]

# check if any command sets match.
for cmd_set in command_sets:
if trigger == cmd_set.trigger:
Expand Down

0 comments on commit ad8fa15

Please sign in to comment.