Skip to content

Commit

Permalink
Corrected type hint
Browse files Browse the repository at this point in the history
Co-authored-by: Ondrej Baranovič <[email protected]>
  • Loading branch information
radarhere and nulano authored Dec 14, 2023
1 parent ac38a91 commit e482ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/ImageChops.py
Original file line number Diff line number Diff line change
Expand Up @@ -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``.
Expand Down

0 comments on commit e482ea9

Please sign in to comment.