Added type hint

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2024-01-10 23:36:26 +11:00 committed by GitHub
parent 659098c6ac
commit 38bfe3cddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1305,7 +1305,7 @@ class Image:
"""
return ImageMode.getmode(self.mode).bands
def getbbox(self, *, alpha_only=True) -> tuple[int, int, int, int]:
def getbbox(self, *, alpha_only: bool = True) -> tuple[int, int, int, int]:
"""
Calculates the bounding box of the non-zero regions in the
image.