Updated ImageCms.createProfile colorTemp default and docstring by radarhere · Pull Request #8096 · python-pillow/Pillow
colorTemp is hinted as a float,
Lines 756 to 758 in 4f4b0bc
| def createProfile( | |
| colorSpace: Literal["LAB", "XYZ", "sRGB"], colorTemp: SupportsFloat = -1 | |
| ) -> core.CmsProfile: |
but described in the docstring as an integer.
Line 780 in 4f4b0bc
| :param colorTemp: Positive integer for the white point for the profile, in |
I've updated the docstring to say 'float' instead.
I've also changed the default from -1 to 0. This has no effect, it just seems simpler to me. It also matches the default in the C layer.