[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] 2022-08-25 12:49:50 +00:00 committed by REDxEYE
parent 91664c9d8e
commit 1c9a84d760

View File

@ -14,7 +14,7 @@ from typing import List
import pytest
from packaging.version import parse as parse_version
from PIL import Image, ImageMath, features, ImageChops
from PIL import Image, ImageChops, ImageMath, features
logger = logging.getLogger(__name__)
@ -24,7 +24,6 @@ if os.environ.get("SHOW_ERRORS"):
# local img.show for errors.
HAS_UPLOADER = True
class test_image_results:
@staticmethod
def upload(a, b):
@ -35,7 +34,6 @@ if os.environ.get("SHOW_ERRORS"):
elif "GITHUB_ACTIONS" in os.environ:
HAS_UPLOADER = True
class test_image_results:
@staticmethod
def upload(a, b):
@ -60,7 +58,7 @@ def concat_h(images: List[Image.Image]):
for image in images[1:]:
assert image.height == new_size[1]
new_size = (new_size[0] + image.width, new_size[1])
dst = Image.new('RGBA', new_size)
dst = Image.new("RGBA", new_size)
x_offset = 0
for image in images:
dst.paste(image, (x_offset, 0))