From f3363c2a72b03c2979a8a14886e229818985a0c4 Mon Sep 17 00:00:00 2001 From: Andrew Murray <3112309+radarhere@users.noreply.github.com> Date: Wed, 23 Jul 2025 10:03:13 +1000 Subject: [PATCH] Removed type hint --- src/PIL/ImageCms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/ImageCms.py b/src/PIL/ImageCms.py index fa353d246..513e28acf 100644 --- a/src/PIL/ImageCms.py +++ b/src/PIL/ImageCms.py @@ -246,7 +246,7 @@ class ImageCmsProfile: self.profile = core.profile_frombytes(f.read()) return self.filename = profile - self.profile: core.CmsProfile = core.profile_open(profile) + self.profile = core.profile_open(profile) elif hasattr(profile, "read"): self.profile = core.profile_frombytes(profile.read()) elif isinstance(profile, core.CmsProfile):