diff --git a/Tests/test_image_resize.py b/Tests/test_image_resize.py index 2f054639133..ce869a46af4 100644 --- a/Tests/test_image_resize.py +++ b/Tests/test_image_resize.py @@ -292,10 +292,7 @@ def resize(mode: str, size: tuple[int, int] | list[int]) -> None: 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 2da1fcc4404..0a79d850a29 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -2292,10 +2292,7 @@ def resize( 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: