From bae918280d8bd74d2ace512a71eabc76e05a1d0f Mon Sep 17 00:00:00 2001 From: Andrew Murray <3112309+radarhere@users.noreply.github.com> Date: Wed, 14 Jun 2023 11:25:12 +1000 Subject: [PATCH] Changed alpha_only to keyword-only argument Co-authored-by: Hugo van Kemenade --- src/PIL/Image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.