Skip to content

Commit 343ce75

Browse files
committed
variable correction in setter. pylint and black verifications
1 parent 2865d41 commit 343ce75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_display_text/label.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def _update_text(
278278
else:
279279
self._y_offset = self._get_ascent() // 2
280280

281-
if self._label_direction== "RTL":
281+
if self._label_direction == "RTL":
282282
left = top = bottom = 0
283283
right = None
284284
elif self._label_direction == "LTR":
@@ -469,7 +469,7 @@ def _set_text(self, new_text: str, scale: int) -> None:
469469
def _set_background_color(self, new_color: int) -> None:
470470
self._update_background_color(new_color)
471471

472-
def _set_label_direction(self, new_line_direction: str) -> None:
473-
self._label_direction = new_line_direction
472+
def _set_label_direction(self, new_label_direction: str) -> None:
473+
self._label_direction = new_label_direction
474474
old_text = self._text
475475
self._update_text(str(old_text))

0 commit comments

Comments
 (0)