diff --git a/src/PIL/ImageChops.py b/src/PIL/ImageChops.py index 89b4f2d88c0..81c7f0d0b27 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``.