From faa66eaa6c1728b1fef23e516e7142f0c914f41d Mon Sep 17 00:00:00 2001 From: Andrew Murray <3112309+radarhere@users.noreply.github.com> Date: Tue, 26 Sep 2023 20:10:12 +1000 Subject: [PATCH] Added type hint Co-authored-by: Hugo van Kemenade --- src/PIL/Image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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