From a6d63478e4abc1efea22e7e35c3da26b662c9c74 Mon Sep 17 00:00:00 2001 From: Mariana Bedran Lesche Date: Thu, 3 Oct 2024 15:16:20 -0300 Subject: [PATCH] Ruff format --- qrcode/image/styles/colormasks.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qrcode/image/styles/colormasks.py b/qrcode/image/styles/colormasks.py index 495a9c7..5d42bea 100644 --- a/qrcode/image/styles/colormasks.py +++ b/qrcode/image/styles/colormasks.py @@ -39,12 +39,14 @@ def apply_mask(self, image): if current_color in fg_color_cache: pixels[x, y] = fg_color_cache[current_color] continue - norm = self.extrap_color(self.back_color, self.paint_color, current_color) + norm = self.extrap_color( + self.back_color, self.paint_color, current_color + ) if norm is not None: new_color = self.interp_color( self.get_bg_pixel(image, x, y), self.get_fg_pixel(image, x, y), - norm + norm, ) pixels[x, y] = new_color fg_color_cache[current_color] = new_color