diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 96ce96d55..d0d5c1884 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -1531,7 +1531,7 @@ class Image: rawmode = mode return list(self.im.getpalette(mode, rawmode)) - def has_transparency_data(self): + def has_transparency_data(self) -> bool: """ Determine if an image has transparency data, whether in the form of an alpha channel, a palette with an alpha channel, or a "transparency" key