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: