Fix importing ImageCms when Pillow was built without lcms2

This commit is contained in:
Nulano 2024-07-02 20:35:14 +02:00
parent 8c2a823e77
commit 285b921b3c

View File

@ -392,7 +392,7 @@ def get_display_profile(handle: SupportsInt | None = None) -> ImageCmsProfile |
# --------------------------------------------------------------------.
_CmsProfileCompatible = Union[
str, SupportsRead[bytes], core.CmsProfile, ImageCmsProfile
str, SupportsRead[bytes], "core.CmsProfile", ImageCmsProfile
]