[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-08-18 16:08:44 +00:00
parent efb647ff79
commit 8bfeddb789
2 changed files with 2 additions and 8 deletions

View File

@ -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)

View File

@ -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: