From c22bd23a824acc913c4e2a0f0cd019b8f49bfb6a Mon Sep 17 00:00:00 2001 From: James Carr Date: Sat, 13 Feb 2021 16:37:19 +0000 Subject: [PATCH] Run black on tilegrid.py --- displayio/tilegrid.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/displayio/tilegrid.py b/displayio/tilegrid.py index 5fb564b..9f35beb 100644 --- a/displayio/tilegrid.py +++ b/displayio/tilegrid.py @@ -243,7 +243,9 @@ class TileGrid: tile_count_x = bitmap_width // tile_width image = Image.new( - "RGBA", (width * tile_width, height * tile_height), (0, 0, 0, 0), + "RGBA", + (width * tile_width, height * tile_height), + (0, 0, 0, 0), ) for tile_x in range(width): @@ -263,7 +265,10 @@ class TileGrid: image.alpha_composite( tile_image, dest=(tile_x * tile_width, tile_y * tile_height), - source=(tile_index_x * tile_width, tile_index_y * tile_height,), + source=( + tile_index_x * tile_width, + tile_index_y * tile_height, + ), ) if absolute_transform is not None: @@ -271,7 +276,9 @@ class TileGrid: image = image.resize( ( int(pixel_width * absolute_transform.scale), - int(pixel_height * absolute_transform.scale,) + int( + pixel_height * absolute_transform.scale, + ), ), resample=Image.NEAREST, ) -- 2.49.0