From e482ea9305fd45bbe7cc55394f599fe3d55731c3 Mon Sep 17 00:00:00 2001 From: Andrew Murray <3112309+radarhere@users.noreply.github.com> Date: Fri, 15 Dec 2023 07:57:14 +1100 Subject: [PATCH] Corrected type hint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ondrej Baranovič --- src/PIL/ImageChops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/ImageChops.py b/src/PIL/ImageChops.py index 89b4f2d88..81c7f0d0b 100644 --- a/src/PIL/ImageChops.py +++ b/src/PIL/ImageChops.py @@ -291,7 +291,7 @@ def composite( return Image.composite(image1, image2, mask) -def offset(image: Image.Image, xoffset: int, yoffset: int = None) -> Image.Image: +def offset(image: Image.Image, xoffset: int, yoffset: int | None = None) -> Image.Image: """Returns a copy of the image where data has been offset by the given distances. Data wraps around the edges. If ``yoffset`` is omitted, it is assumed to be equal to ``xoffset``.