From 54c5c5c3be6bcfd4e41da78077a97b4fb76d926f Mon Sep 17 00:00:00 2001 From: sigmanificient Date: Thu, 9 Feb 2023 12:31:50 +0100 Subject: [PATCH] fix: Improve pylint score --- catppuccin/colour.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/catppuccin/colour.py b/catppuccin/colour.py index 0deb796..820c90e 100644 --- a/catppuccin/colour.py +++ b/catppuccin/colour.py @@ -5,7 +5,7 @@ from __future__ import annotations import re from dataclasses import dataclass -from typing import Tuple, Any +from typing import Any, Tuple @dataclass(frozen=True) @@ -39,5 +39,5 @@ class Colour: match = re.match(r"([\da-fA-F]{2})" * 3, hex_string) if match is None: raise ValueError("Hex string have an invalid format.") - r, g, b = match.groups() - return Colour(*(int(col, 16) for col in (r, g, b))) + hex_r, hex_g, hex_b = match.groups() + return Colour(*(int(col, 16) for col in (hex_r, hex_g, hex_b)))