From 77dd0d27ffe31458a24b2ad03afa18438f723ffe Mon Sep 17 00:00:00 2001 From: Hana Joo Date: Mon, 20 Jul 2026 09:54:43 -0700 Subject: [PATCH] Suppressions for pyrefly PiperOrigin-RevId: 950898455 --- mediapy/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mediapy/__init__.py b/mediapy/__init__.py index 185b3ce..a1b505e 100644 --- a/mediapy/__init__.py +++ b/mediapy/__init__.py @@ -1089,8 +1089,8 @@ def maybe_downsample(image: _NDArray) -> _NDArray: def html_from_compressed_images() -> str: html_strings = [] for image, title, png_data in zip(list_images, list_titles, png_datas): - w, h = _get_width_height(width, height, image.shape[:2]) - magnified = h > image.shape[0] or w > image.shape[1] + w, h = _get_width_height(width, height, image.shape[:2]) # pyrefly: ignore[missing-attribute] + magnified = h > image.shape[0] or w > image.shape[1] # pyrefly: ignore[missing-attribute] pixelated2 = pixelated if pixelated is not None else magnified html_strings.append( html_from_compressed_image(