Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit 28693d1

Browse files
author
DirectiveAthena
committed
Format: Spacing of Hexadecimal parsing
1 parent ba9ef72 commit 28693d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/AthenaColor/Objects/Hexadecimal.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ def __init__(self, hex_value:str):
1919
if isinstance(hex_value, str) and hex_value[0] == "#":
2020
hex_v = hex_value.removeprefix('#')
2121
indexes = (0, 2, 4)
22-
self.r,self.g, self.b = tuple(int(hex_v[i:i+2], 16) for i in indexes)
22+
self.r,self.g, self.b = tuple(
23+
int(hex_v[i:i+2], 16)
24+
for i in indexes
25+
)
2326
else:
2427
raise ValueError("no correct str was given on creation")

0 commit comments

Comments
 (0)