Skip to content

Commit 86d8222

Browse files
authored
Merge pull request #27 from tcfranks/main
Add Missing Type Annotations
2 parents 9b1f9bb + 801a7ac commit 86d8222

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

adafruit_il0373.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131

3232
import displayio
3333

34+
try:
35+
from typing import Optional
36+
from displayio import FourWire
37+
except ImportError:
38+
pass
39+
3440
__version__ = "0.0.0+auto.0"
3541
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_IL0373.git"
3642

@@ -130,7 +136,13 @@ class IL0373(displayio.EPaperDisplay):
130136
Invert black bit values
131137
"""
132138

133-
def __init__(self, bus, swap_rams=False, border=False, **kwargs):
139+
def __init__(
140+
self,
141+
bus: FourWire,
142+
swap_rams: bool = False,
143+
border: Optional[bool] = False,
144+
**kwargs
145+
) -> None:
134146
if kwargs.get("grayscale", False):
135147
start_sequence = bytearray(_GRAYSCALE_START_SEQUENCE)
136148
else:

0 commit comments

Comments
 (0)