From e24312f61a08be6632e8de0569f7a498257a87ec Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Wed, 2 Oct 2024 03:38:46 -0700 Subject: [PATCH] Ignore some pytype errors caused by an internal Pillow upgrade. PiperOrigin-RevId: 681384572 --- scenic/common_lib/image_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scenic/common_lib/image_utils.py b/scenic/common_lib/image_utils.py index 1c37475d9..be4866d52 100644 --- a/scenic/common_lib/image_utils.py +++ b/scenic/common_lib/image_utils.py @@ -92,7 +92,7 @@ def resize_pil(image_or_batch: np.ndarray, pil_size = [out_w, out_h] resized = np.stack([ - np.asarray(Image.fromarray(image).resize(pil_size, resample)) + np.asarray(Image.fromarray(image).resize(pil_size, resample)) # pytype: disable=wrong-arg-types # pillow-102-upgrade for image in batch ])