Skip to content

Commit

Permalink
Removed type hint ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Apr 21, 2024
1 parent eee633c commit d5c1ff4
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"

Check warning on line 842 in src/PIL/ImageCms.py

View check run for this annotation

Codecov / codecov/patch

src/PIL/ImageCms.py#L841-L842

Added lines #L841 - L842 were not covered by tests
return f"{model} - {manufacturer}\n"

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

0 comments on commit d5c1ff4

Please sign in to comment.