diff options
| author | 2022-11-02 02:07:29 -0700 | |
|---|---|---|
| committer | 2022-11-02 02:07:29 -0700 | |
| commit | 43a2acf5ee4eb354ce3dfaeef9504eee9b9b46b4 (patch) | |
| tree | cbdfeb08f8d582aa98acec6a529f0fa3dcd7933c /bot/utils/commands.py | |
| parent | Appeased the formatter (diff) | |
| parent | Merge pull request #1137 from DivyanshuBist/bug-issue1122-message-of-type-None (diff) | |
Merge branch 'main' into main
Diffstat (limited to 'bot/utils/commands.py')
| -rw-r--r-- | bot/utils/commands.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bot/utils/commands.py b/bot/utils/commands.py index 7c04a25a..2058507e 100644 --- a/bot/utils/commands.py +++ b/bot/utils/commands.py @@ -1,11 +1,7 @@ -from typing import Optional - from rapidfuzz import process -def get_command_suggestions( - all_commands: list[str], query: str, *, cutoff: int = 60, limit: int = 3 -) -> Optional[list]: +def get_command_suggestions(all_commands: list[str], query: str, *, cutoff: int = 60, limit: int = 3) -> list[str]: """Get similar command names.""" results = process.extract(query, all_commands, score_cutoff=cutoff, limit=limit) return [result[0] for result in results] |