From 2c68f1d15f9cc71f97cf8a520fde6063fcc3b543 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 1 Sep 2026 13:00:52 +0300 Subject: [PATCH] Adjust tuple construction in ImageGrab to make mypy happy --- src/PIL/ImageGrab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/ImageGrab.py b/src/PIL/ImageGrab.py index 52cbfea406d..0a638bb3504 100644 --- a/src/PIL/ImageGrab.py +++ b/src/PIL/ImageGrab.py @@ -79,7 +79,7 @@ def grab( scale = 1 if scale_down else 2 im_cropped = im.resize( ((right - left) * scale, (bottom - top) * scale), - box=tuple(coord * 2 for coord in bbox), + box=(left * 2, top * 2, right * 2, bottom * 2), ) else: im_cropped = im.crop(bbox)