Skip to content

Commit 11d6631

Browse files
committed
Files reformatted per pre-commit
1 parent b592b4c commit 11d6631

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

adafruit_display_text/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818

1919

2020
def wrap_text_to_pixels(
21-
string: str, max_width: int, font: Optional[Union[BuiltinFont, BDF, PCF]] = None, indent0: str = "", indent1: str = ""
21+
string: str,
22+
max_width: int,
23+
font: Optional[Union[BuiltinFont, BDF, PCF]] = None,
24+
indent0: str = "",
25+
indent1: str = "",
2226
) -> List[str]:
2327
# pylint: disable=too-many-branches, too-many-locals
2428

adafruit_display_text/bitmap_label.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ class Label(LabelBase):
8484
configurations possibles ``LTR``-Left-To-Right ``RTL``-Right-To-Left
8585
``UPD``-Upside Down ``UPR``-Upwards ``DWR``-Downwards. It defaults to ``LTR``"""
8686

87-
def __init__(self, font: Union[BuiltinFont, BDF, PCF], save_text: bool = True, **kwargs) -> None:
87+
def __init__(
88+
self, font: Union[BuiltinFont, BDF, PCF], save_text: bool = True, **kwargs
89+
) -> None:
8890

8991
self._bitmap = None
9092

@@ -251,7 +253,9 @@ def _reset_text(
251253
self.anchored_position = self._anchored_position
252254

253255
@staticmethod
254-
def _line_spacing_ypixels(font: Union[BuiltinFont, BDF, PCF], line_spacing: float) -> int:
256+
def _line_spacing_ypixels(
257+
font: Union[BuiltinFont, BDF, PCF], line_spacing: float
258+
) -> int:
255259
# Note: Scaling is provided at the Group level
256260
return_value = int(line_spacing * font.get_bounding_box()[1])
257261
return return_value

0 commit comments

Comments
 (0)