Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -3802,15 +3802,15 @@ def composite(image1: Image, image2: Image, mask: Image) -> Image:


def eval(image: Image, *args: Callable[[int], float]) -> Image:
"""
r"""
Applies the function (which should take one argument) to each pixel
in the given image. If the image has more than one band, the same
function is applied to each band. Note that the function is
evaluated once for each possible pixel value, so you cannot use
random components or other generators.

:param image: The input image.
:param function: A function object, taking one integer argument.
:param \*args: A function object, taking one integer argument.
:returns: An :py:class:`~PIL.Image.Image` object.
"""

Expand Down
2 changes: 1 addition & 1 deletion src/PIL/ImageStat.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(
only the regions covered by that mask are included in the
statistics. You can also pass in a previously calculated histogram.
:param image: A PIL image, or a precalculated histogram.
:param image_or_list: A PIL image, or a precalculated histogram.
.. note::
Expand Down
Loading