mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Changed alpha_only to keyword-only argument
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
58e0dd7df9
commit
bae918280d
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user