Skip to content

Commit 2ced7b4

Browse files
committed
Ruff formatting
1 parent c5e3f01 commit 2ced7b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

qrcode/image/styles/colormasks.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ def apply_mask(self, image, use_cache=False):
3939
if use_cache and current_color in fg_color_cache:
4040
pixels[x, y] = fg_color_cache[current_color]
4141
continue
42-
norm = self.extrap_color(self.back_color, self.paint_color, current_color)
42+
norm = self.extrap_color(
43+
self.back_color, self.paint_color, current_color
44+
)
4345
if norm is not None:
4446
new_color = self.interp_color(
4547
self.get_bg_pixel(image, x, y),
4648
self.get_fg_pixel(image, x, y),
47-
norm
49+
norm,
4850
)
4951
pixels[x, y] = new_color
5052

0 commit comments

Comments
 (0)