From a6a8f8ed9b4f6daa454703286250b1d2b72e85a6 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Thu, 9 Nov 2023 10:09:20 +0000 Subject: Lint repo with new ruff rules --- bot/exts/utilities/colour.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot/exts/utilities/colour.py') diff --git a/bot/exts/utilities/colour.py b/bot/exts/utilities/colour.py index b0ff8747..0380779d 100644 --- a/bot/exts/utilities/colour.py +++ b/bot/exts/utilities/colour.py @@ -236,7 +236,7 @@ class Colour(commands.Cog): """Convert RGB values to a fuzzy matched name.""" input_hex_colour = self._rgb_to_hex(rgb) try: - match, certainty, _ = rapidfuzz.process.extractOne( + match, _, _ = rapidfuzz.process.extractOne( query=input_hex_colour, choices=self.colour_mapping.values(), score_cutoff=80 @@ -249,7 +249,7 @@ class Colour(commands.Cog): def match_colour_name(self, ctx: commands.Context, input_colour_name: str) -> str | None: """Convert a colour name to HEX code.""" try: - match, certainty, _ = rapidfuzz.process.extractOne( + match, _, _ = rapidfuzz.process.extractOne( query=input_colour_name, choices=self.colour_mapping.keys(), score_cutoff=80 -- cgit v1.2.3