From 1856d106eaf1ff5fe0c1799c579ba3656d33cfd0 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 29 Sep 2017 21:08:49 +1000 Subject: [PATCH] Corrected parameters in documentation --- PIL/Image.py | 1 + PIL/ImageOps.py | 2 ++ PIL/PngImagePlugin.py | 3 ++- PIL/PyAccess.py | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/PIL/Image.py b/PIL/Image.py index 6e6927842..7f0593503 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -1570,6 +1570,7 @@ class Image(object): string. :param data: A palette sequence (either a list or a string). + :param rawmode: The raw mode of the palette. """ from . import ImagePalette diff --git a/PIL/ImageOps.py b/PIL/ImageOps.py index 447d48aae..25d491aff 100644 --- a/PIL/ImageOps.py +++ b/PIL/ImageOps.py @@ -185,6 +185,7 @@ def scale(image, factor, resample=Image.NEAREST): A factor greater than 1 expands the image, between 0 and 1 contracts the image. + :param image: The image to rescale. :param factor: The expansion factor, as a float. :param resample: An optional resampling filter. Same values possible as in the PIL.Image.resize function. @@ -271,6 +272,7 @@ def fit(image, size, method=Image.NEAREST, bleed=0.0, centering=(0.5, 0.5)): This function was contributed by Kevin Cazabon. + :param image: The image to size and crop. :param size: The requested output size in pixels, given as a (width, height) tuple. :param method: What resampling method to use. Default is diff --git a/PIL/PngImagePlugin.py b/PIL/PngImagePlugin.py index e329a6c0d..409d7f302 100644 --- a/PIL/PngImagePlugin.py +++ b/PIL/PngImagePlugin.py @@ -185,7 +185,8 @@ class iTXt(str): @staticmethod def __new__(cls, text, lang, tkey): """ - :param value: value for this key + :param cls: the class to use when creating the instance + :param text: value for this key :param lang: language code :param tkey: UTF-8 version of the key name """ diff --git a/PIL/PyAccess.py b/PIL/PyAccess.py index 620efc4ff..7eec1b160 100644 --- a/PIL/PyAccess.py +++ b/PIL/PyAccess.py @@ -69,7 +69,7 @@ class PyAccess(object): multi-band images :param xy: The pixel coordinate, given as (x, y). - :param value: The pixel value. + :param color: The pixel value. """ if self.readonly: raise ValueError('Attempt to putpixel a read only image')