Added type hint

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2023-09-26 20:10:12 +10:00 committed by GitHub
parent ad12caecda
commit faa66eaa6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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