Skip to content

Commit e6532ff

Browse files
committed
Fixed return type
1 parent 5b61089 commit e6532ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adafruit_simple_text_display.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def __init__(
174174
# Add first line
175175
self._lines.append(self.add_text_line(color=colors[0]))
176176

177-
def __getitem__(self, item: int) -> label:
177+
def __getitem__(self, item: int) -> label.Label:
178178
"""Fetch the Nth text line Group"""
179179
if len(self._lines) - 1 < item:
180180
for i in range(len(self._lines), item + 1):
@@ -183,7 +183,9 @@ def __getitem__(self, item: int) -> label:
183183
)
184184
return self._lines[item]
185185

186-
def add_text_line(self, color: Tuple[int, int, int] = (255, 255, 255)) -> label:
186+
def add_text_line(
187+
self, color: Tuple[int, int, int] = (255, 255, 255)
188+
) -> label.Label:
187189
"""Adds a line on the display of the specified color and returns the label object."""
188190

189191
text_label = label.Label(

0 commit comments

Comments
 (0)