Skip to content

Commit

Permalink
Ignore some pytype errors caused by an internal Pillow upgrade.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 683285335
  • Loading branch information
lukegb authored and Scenic Authors committed Oct 7, 2024
1 parent 2c6e534 commit 3e46a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scenic/common_lib/image_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
])

Expand Down

0 comments on commit 3e46a27

Please sign in to comment.