Removed type hint

This commit is contained in:
Andrew Murray 2025-07-23 10:03:13 +10:00 committed by GitHub
parent 31498f3407
commit f3363c2a72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):