Skip to content

Commit 96a0ce6

Browse files
committed
format again
1 parent 6198b8d commit 96a0ce6

File tree

5 files changed

+0
-13
lines changed

5 files changed

+0
-13
lines changed

adafruit_display_text/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def wrap_text_to_pixels(
2727
indent0: str = "",
2828
indent1: str = "",
2929
) -> List[str]:
30-
3130
"""wrap_text_to_pixels function
3231
A helper that will return a list of lines with word-break wrapping.
3332
Leading and trailing whitespace in your string will be removed. If
@@ -183,7 +182,6 @@ def chunks(lst, n):
183182

184183

185184
class LabelBase(Group):
186-
187185
"""Superclass that all other types of labels will extend. This contains
188186
all of the properties and functions that work the same way in all labels.
189187
@@ -243,7 +241,6 @@ def __init__(
243241
label_direction: str = "LTR",
244242
verbose: bool = False,
245243
) -> None:
246-
247244
super().__init__(x=x, y=y, scale=1)
248245

249246
self._font = font

adafruit_display_text/bitmap_label.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ def _reset_text(
126126
line_spacing: Optional[float] = None,
127127
scale: Optional[int] = None,
128128
) -> None:
129-
130129
# Store all the instance variables
131130
if font is not None:
132131
self._font = font
@@ -284,8 +283,6 @@ def _line_spacing_ypixels(font: FontProtocol, line_spacing: float) -> int:
284283
def _text_bounding_box(
285284
self, text: str, font: FontProtocol
286285
) -> Tuple[int, int, int, int, int, int]:
287-
288-
289286
bbox = font.get_bounding_box()
290287
if len(bbox) == 4:
291288
ascender_max, descender_max = bbox[1], -bbox[3]
@@ -372,7 +369,6 @@ def _place_text(
372369
# when copying glyph bitmaps (this is important for slanted text
373370
# where rectangular glyph boxes overlap)
374371
) -> Tuple[int, int, int, int]:
375-
376372
# placeText - Writes text into a bitmap at the specified location.
377373
#
378374
# Note: scale is pushed up to Group level
@@ -463,7 +459,6 @@ def _blit(
463459
skip_index: int = None, # palette index that will not be copied
464460
# (for example: the background color of a glyph)
465461
) -> None:
466-
467462
if hasattr(bitmap, "blit"): # if bitmap has a built-in blit function, call it
468463
# this function should perform its own input checks
469464
bitmap.blit(

adafruit_display_text/label.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040

4141
class Label(LabelBase):
42-
4342
"""A label displaying a string of text. The origin point set by ``x`` and ``y``
4443
properties will be the left edge of the bounding box, and in the center of a M
4544
glyph (if its one line), or the (number of lines * linespacing + M)/2. That is,
@@ -227,7 +226,6 @@ def _set_background_color(self, new_color: Optional[int]) -> None:
227226
self._added_background_tilegrid = False
228227

229228
def _update_text(self, new_text: str) -> None:
230-
231229
x = 0
232230
y = 0
233231
if self._added_background_tilegrid:

adafruit_display_text/text_box.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ def _place_text(
114114
# when copying glyph bitmaps (this is important for slanted text
115115
# where rectangular glyph boxes overlap)
116116
) -> Tuple[int, int, int, int]:
117-
118117
# placeText - Writes text into a bitmap at the specified location.
119118
#
120119
# Note: scale is pushed up to Group level
@@ -226,7 +225,6 @@ def _reset_text(
226225
line_spacing: Optional[float] = None,
227226
scale: Optional[int] = None,
228227
) -> None:
229-
230228
# Store all the instance variables
231229
if font is not None:
232230
self._font = font

examples/display_text_label_vs_bitmap_label_comparison.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
from adafruit_display_text import bitmap_label, label
1414

15-
1615
##########
1716
# Use this Boolean variables to select which font style to use
1817
##########

0 commit comments

Comments
 (0)