Use underscore as throwaway variable

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Hugo van Kemenade 2023-12-05 00:03:38 +02:00 committed by GitHub
parent 9601102724
commit f7c3f2a447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,7 +220,7 @@ def negative(mode="RGB"):
def random(mode="RGB"):
from random import randint
palette = [randint(0, 255) for i in range(256 * len(mode))]
palette = [randint(0, 255) for _ in range(256 * len(mode))]
return ImagePalette(mode, palette)