[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 15:46:30 +00:00
parent 90a832ef03
commit c373c498d9
2 changed files with 3 additions and 9 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(scale=scale)
assert out.mode == mode
assert out.size == tuple(size)

View File

@ -2290,12 +2290,9 @@ class Image:
if reducing_gap is not None and reducing_gap < 1.0:
msg = "reducing_gap must be 1.0 or greater"
raise ValueError(msg)
if scale:
size = (
int(self.width * scale),
int(self.height * scale)
)
size = (int(self.width * scale), int(self.height * scale))
self.load()
if box is None: