mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Corrected type hint
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
This commit is contained in:
parent
ac38a91816
commit
e482ea9305
|
@ -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``.
|
||||
|
|
Loading…
Reference in New Issue
Block a user