ruff: Fix PIE808 Unnecessary start argument in range.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 81bd63cb46)
This commit is contained in:
Anders Kaseorg
2023-09-01 14:05:08 -07:00
parent e2dcea1664
commit 7c50e1a40e
15 changed files with 28 additions and 28 deletions

View File

@@ -98,7 +98,7 @@ def resize_animated(im: Image.Image, size: int = DEFAULT_EMOJI_SIZE) -> bytes:
disposals = []
# If 'loop' info is not set then loop for infinite number of times.
loop = im.info.get("loop", 0)
for frame_num in range(0, im.n_frames):
for frame_num in range(im.n_frames):
im.seek(frame_num)
new_frame = im.copy()
new_frame.paste(im, (0, 0), im.convert("RGBA"))