Corrected type hint

Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
This commit is contained in:
Andrew Murray 2023-12-15 07:57:14 +11:00 committed by GitHub
parent ac38a91816
commit e482ea9305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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``.