diff --git a/src/PIL/Image.py b/src/PIL/Image.py index f5d120671..74c1bd7f6 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -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.