Skip to content

Commit 54c5c5c

Browse files
Sigmanificientbackwardspy
authored andcommitted
fix: Improve pylint score
1 parent 105905e commit 54c5c5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

catppuccin/colour.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import re
77
from dataclasses import dataclass
8-
from typing import Tuple, Any
8+
from typing import Any, Tuple
99

1010

1111
@dataclass(frozen=True)
@@ -39,5 +39,5 @@ def from_hex(cls, hex_string: str) -> Colour:
3939
match = re.match(r"([\da-fA-F]{2})" * 3, hex_string)
4040
if match is None:
4141
raise ValueError("Hex string have an invalid format.")
42-
r, g, b = match.groups()
43-
return Colour(*(int(col, 16) for col in (r, g, b)))
42+
hex_r, hex_g, hex_b = match.groups()
43+
return Colour(*(int(col, 16) for col in (hex_r, hex_g, hex_b)))

0 commit comments

Comments
 (0)