Merge pull request #5255 from radarhere/getrgb

Updated ImageColor.getrgb docstring
This commit is contained in:
Hugo van Kemenade 2021-02-09 10:49:04 +02:00 committed by GitHub
commit cc4ed21f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,8 +24,8 @@ from . import Image
def getrgb(color): def getrgb(color):
""" """
Convert a color string to an RGB tuple. If the string cannot be parsed, Convert a color string to an RGB or RGBA tuple. If the string cannot be
this function raises a :py:exc:`ValueError` exception. parsed, this function raises a :py:exc:`ValueError` exception.
.. versionadded:: 1.1.4 .. versionadded:: 1.1.4