diff options
author | 2021-11-12 10:08:21 -0500 | |
---|---|---|
committer | 2021-11-12 10:08:21 -0500 | |
commit | 5b3a23fe7b81d07c842271dc1947aa60133a2f8d (patch) | |
tree | c7ab1f60e2cfb4e8ec4e60a9e59aa6b9c83a9ac8 /bot | |
parent | fix: check length of hex before strip (diff) |
fix: replace Union with Optional type hint
Co-authored-by: Xithrius <[email protected]>
Diffstat (limited to 'bot')
-rw-r--r-- | bot/exts/utilities/colour.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utilities/colour.py b/bot/exts/utilities/colour.py index 66df5e0b..5cd01fb5 100644 --- a/bot/exts/utilities/colour.py +++ b/bot/exts/utilities/colour.py @@ -244,7 +244,7 @@ class Colour(commands.Cog): colour_name = None return colour_name - def match_colour_name(self, ctx: commands.Context, input_colour_name: str) -> Union[str, None]: + def match_colour_name(self, ctx: commands.Context, input_colour_name: str) -> Optional[str]: """Convert a colour name to HEX code.""" try: match, certainty, _ = rapidfuzz.process.extractOne( |