Skip to content

Commit

Permalink
Correct type hint for Command.options
Browse files Browse the repository at this point in the history
Previously, this was typed as a single-element tuple.
  • Loading branch information
AledWatkins committed Apr 6, 2024
1 parent af4dfa3 commit c61bf78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion squash_bot/core/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def is_user(self) -> bool:
class Command:
name: str
description: str
options: tuple[CommandOption]
options: tuple[CommandOption, ...]

def parse_options(self, base_context: dict[str, typing.Any]) -> dict[str, typing.Any]:
data = base_context["data"]
Expand Down

0 comments on commit c61bf78

Please sign in to comment.