mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 02:36:17 +03:00
Merge pull request #7989 from radarhere/typehints_imagecms
Removed type hint ignores
This commit is contained in:
commit
492c726350
|
@ -838,8 +838,8 @@ def getProfileName(profile: _CmsProfileCompatible) -> str:
|
||||||
|
|
||||||
if not (model or manufacturer):
|
if not (model or manufacturer):
|
||||||
return (profile.profile.profile_description or "") + "\n"
|
return (profile.profile.profile_description or "") + "\n"
|
||||||
if not manufacturer or len(model) > 30: # type: ignore[arg-type]
|
if not manufacturer or (model and len(model) > 30):
|
||||||
return model + "\n" # type: ignore[operator]
|
return f"{model}\n"
|
||||||
return f"{model} - {manufacturer}\n"
|
return f"{model} - {manufacturer}\n"
|
||||||
|
|
||||||
except (AttributeError, OSError, TypeError, ValueError) as v:
|
except (AttributeError, OSError, TypeError, ValueError) as v:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user