We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 105905e commit 54c5c5cCopy full SHA for 54c5c5c
1 file changed
catppuccin/colour.py
@@ -5,7 +5,7 @@
5
6
import re
7
from dataclasses import dataclass
8
-from typing import Tuple, Any
+from typing import Any, Tuple
9
10
11
@dataclass(frozen=True)
@@ -39,5 +39,5 @@ def from_hex(cls, hex_string: str) -> Colour:
39
match = re.match(r"([\da-fA-F]{2})" * 3, hex_string)
40
if match is None:
41
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)))
+ hex_r, hex_g, hex_b = match.groups()
+ return Colour(*(int(col, 16) for col in (hex_r, hex_g, hex_b)))
0 commit comments