Skip to content

Commit

Permalink
Merge pull request #7989 from radarhere/typehints_imagecms
Browse files Browse the repository at this point in the history
Removed type hint ignores
  • Loading branch information
hugovk authored Apr 22, 2024
2 parents eee633c + d5c1ff4 commit 492c726
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PIL/ImageCms.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,8 @@ def getProfileName(profile: _CmsProfileCompatible) -> str:

if not (model or manufacturer):
return (profile.profile.profile_description or "") + "\n"
if not manufacturer or len(model) > 30: # type: ignore[arg-type]
return model + "\n" # type: ignore[operator]
if not manufacturer or (model and len(model) > 30):
return f"{model}\n"
return f"{model} - {manufacturer}\n"

except (AttributeError, OSError, TypeError, ValueError) as v:
Expand Down

0 comments on commit 492c726

Please sign in to comment.