From d9f3de5bd446f85b6d2bc88f16d118b60c504e37 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Fri, 22 May 2020 10:38:53 -0700 Subject: [PATCH] Black formatted again... --- displayio.py | 6 +++--- fontio.py | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/displayio.py b/displayio.py index 0ca3d6f..f296b5b 100644 --- a/displayio.py +++ b/displayio.py @@ -49,7 +49,7 @@ __repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git" _displays = [] Rectangle = namedtuple("Rectangle", "x1 y1 x2 y2") -AbsoluteTransform = namedtuple("AbsoluteTransform", "scale transposexy") +AbsoluteTransform = namedtuple("AbsoluteTransform", "scale transpose_xy flip_x flip_y") def release_displays(): @@ -59,7 +59,7 @@ def release_displays(): initialization so the display is active as long as possible. """ for _disp in _displays: - _disp._release() # pylint: disable=protected-access + _disp._release() # pylint: disable=protected-access _displays.clear() @@ -725,7 +725,7 @@ class Group: for layer in self._layers: if isinstance(layer, (Group, TileGrid)): - layer._fill_area(buffer) # pylint: disable=protected-access + layer._fill_area(buffer) # pylint: disable=protected-access @property def hidden(self): diff --git a/fontio.py b/fontio.py index 828e157..e64ce68 100644 --- a/fontio.py +++ b/fontio.py @@ -43,6 +43,7 @@ __repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git" class BuiltinFont: """Simulate a font built into CircuitPython""" + def __init__(self): self._font = ImageFont.load_default() ascii_chars = "" @@ -92,6 +93,7 @@ class BuiltinFont: class Glyph: """Storage of glyph info""" + def __init__(self, *, bitmap, tile_index, width, height, dx, dy, shift_x, shift_y): self.bitmap = bitmap self.width = width -- 2.49.0