Skip to content

Commit d5c1ff4

Browse files
committed
Removed type hint ignores
1 parent eee633c commit d5c1ff4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PIL/ImageCms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,8 @@ def getProfileName(profile: _CmsProfileCompatible) -> str:
838838

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

845845
except (AttributeError, OSError, TypeError, ValueError) as v:

0 commit comments

Comments
 (0)