mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-29 17:33:08 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
91664c9d8e
commit
1c9a84d760
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user