From da451e5beaa05addec02ed99b7500838520ce5a9 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 19 Feb 2022 22:55:23 +1100 Subject: [PATCH] Record the version the rawmode argument was added --- src/PIL/Image.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 305ef445b..934c75b5f 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -1407,6 +1407,9 @@ class Image: :param rawmode: The mode in which to return the palette. ``None`` will return the palette in its current mode. + + .. versionadded:: 9.1.0 + :returns: A list of color values [r, g, b, ...], or None if the image has no palette. """