Skip to content

Commit 5b61089

Browse files
committed
Fix __getitem__ annotation
1 parent e231269 commit 5b61089

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_simple_text_display.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"""
2525

2626
try:
27-
from typing import Optional, Tuple, List
27+
from typing import Optional, Tuple
2828
from fontio import FontProtocol
2929
except ImportError:
3030
pass
@@ -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) -> List[label]:
177+
def __getitem__(self, item: int) -> 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):

0 commit comments

Comments
 (0)