Skip to content

Commit

Permalink
Changed inPlace to be keyword-only argument
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 14, 2023
1 parent 8bbd4ad commit f338f35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PIL/ImageOps.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,13 @@ def solarize(image, threshold=128):
return _lut(image, lut)


def exif_transpose(image, inPlace=False):
def exif_transpose(image, *, inPlace=False):
"""
If an image has an EXIF Orientation tag, other than 1, transpose the image
accordingly, and remove the orientation data.
:param image: The image to transpose.
:param inPlace: Boolean.
:param inPlace: Boolean. Keyword-only argument.
If ``True``, the original image is modified in-place, and ``None`` is returned.
If ``False`` (default), a new :py:class:`~PIL.Image.Image` object is returned
with the transposition applied. If there is no transposition, a copy of the
Expand Down

0 comments on commit f338f35

Please sign in to comment.