diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 96ce96d559a..d0d5c18846c 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -1531,7 +1531,7 @@ def getpalette(self, rawmode="RGB"): 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