Skip to content

Commit e4f620d

Browse files
committed
Lint repo to latest ruff rules
1 parent 58c2c90 commit e4f620d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

quackstack/colors.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from colorsys import hls_to_rgb, rgb_to_hls
2+
from itertools import starmap
23
from random import Random
34
from typing import NamedTuple
45

@@ -49,7 +50,7 @@ def make_duck_colors(random: Random) -> DuckyColors:
4950
# Shift the hue of the beck
5051
beak = (beak[0] + .1 % 1, beak[1], beak[2])
5152

52-
scalar_colors = [hls_to_rgb(*color_pair) for color_pair in (eye_main, eye_wing, wing, body, beak)]
53+
scalar_colors = list(starmap(hls_to_rgb, (eye_main, eye_wing, wing, body, beak)))
5354
colors = (tuple(int(color * 256) for color in color_pair) for color_pair in scalar_colors)
5455

5556
return DuckyColors(*colors)

0 commit comments

Comments
 (0)