Skip to content

Commit 13b2fdd

Browse files
committed
Support Python 3.8
1 parent a19c184 commit 13b2fdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atest/library/screenshot.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from enum import Enum, auto
33
from io import BytesIO
44
from PIL import Image, ImageChops
5-
from typing import Tuple
5+
from typing import Tuple, Union
66
from robot.api import logger
77

88

@@ -25,7 +25,7 @@ def get_pixel_color(img_path: str, x: int, y: int) -> Tuple[int, int]:
2525

2626
def compare_images(
2727
img1_path: str,
28-
img2_bytes_or_path: bytes | str,
28+
img2_bytes_or_path: Union[bytes, str],
2929
expect_failure: ExpectFailure = ExpectFailure.no,
3030
error_threshold: int = 10,
3131
):

0 commit comments

Comments
 (0)