diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 8bf0f8ab113..95f28041ebe 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -3802,7 +3802,7 @@ 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 @@ -3810,7 +3810,7 @@ def eval(image: Image, *args: Callable[[int], float]) -> Image: 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. """ diff --git a/src/PIL/ImageStat.py b/src/PIL/ImageStat.py index 2f818adc937..5ad5159d019 100644 --- a/src/PIL/ImageStat.py +++ b/src/PIL/ImageStat.py @@ -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::