Changed alpha_only to keyword-only argument

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2023-06-14 11:25:12 +10:00 committed by GitHub
parent 58e0dd7df9
commit bae918280d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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