diff options
author | 2022-09-19 17:20:15 +0100 | |
---|---|---|
committer | 2022-09-19 17:20:15 +0100 | |
commit | 511724a704b2ef87dad8c24006cb7250aa964b35 (patch) | |
tree | 009330e0af9e8d7a191578c34f5f2983f41f01af | |
parent | add test that checks for the sent content if one invalid index is present in ... (diff) |
fix wrong type hint of the rules function return value
-rw-r--r-- | bot/exts/info/information.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index 58f0764d8..d4f0ce008 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -3,7 +3,7 @@ import pprint import textwrap from collections import defaultdict from textwrap import shorten -from typing import Any, DefaultDict, List, Mapping, Optional, Tuple, Union +from typing import Any, DefaultDict, Mapping, Optional, Set, Tuple, Union import rapidfuzz from botcore.site_api import ResponseCodeError @@ -518,7 +518,7 @@ class Information(Cog): await self.send_raw_content(ctx, message, json=True) @command(aliases=("rule",)) - async def rules(self, ctx: Context, *args: Optional[str]) -> Optional[List[int]]: + async def rules(self, ctx: Context, *args: Optional[str]) -> Optional[Set[int]]: """ Provides a link to all rules or, if specified, displays specific rule(s). |