From 8bfeddb789482a54a4ae5621c98d64227c9d7cd8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 18 Aug 2024 16:08:44 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- Tests/test_image_resize.py | 5 +---- src/PIL/Image.py | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Tests/test_image_resize.py b/Tests/test_image_resize.py index 2f0546391..ce869a46a 100644 --- a/Tests/test_image_resize.py +++ b/Tests/test_image_resize.py @@ -292,10 +292,7 @@ class TestImageResize: def resize_scale(mode: str, scale: float) -> None: img = hopper(mode) - size = ( - int(self.width * scale), - int(self.height * scale) - ) + size = (int(self.width * scale), int(self.height * scale)) out = img.resize(img.size, scale=scale) assert out.mode == mode assert out.size == tuple(size) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 2da1fcc44..0a79d850a 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -2292,10 +2292,7 @@ class Image: raise ValueError(msg) if scale: - size = ( - int(size[0] * scale), - int(size[1] * scale) - ) + size = (int(size[0] * scale), int(size[1] * scale)) self.load() if box is None: