From 044de40c93064aa938dc45868ce52698062009da Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 14 Jun 2023 11:28:14 +1000 Subject: [PATCH] Document that alpha_only is a keyword-only argument --- src/PIL/Image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 4413bae28..340ba4e3b 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -1301,6 +1301,7 @@ class Image: :param alpha_only: Optional flag, defaulting to ``True``. If ``True`` and the image has an alpha channel, trim transparent pixels. Otherwise, trim pixels when all channels are zero. + Keyword-only argument. :returns: The bounding box is returned as a 4-tuple defining the left, upper, right, and lower pixel coordinate. See :ref:`coordinate-system`. If the image is completely empty, this