Skip to content

Commit 9fbc74b

Browse files
authored
Merge pull request #15 from tcfranks/main
Add Missing Type Annotations
2 parents ad1b5e7 + 2c23794 commit 9fbc74b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

adafruit_displayio_ssd1305.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131

3232
import displayio
3333

34+
try:
35+
from typing import Union
36+
except ImportError:
37+
pass
38+
3439
__version__ = "0.0.0+auto.0"
3540
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_SSD1305.git"
3641

@@ -65,7 +70,9 @@ class SSD1305(displayio.Display):
6570
One of (0, 90, 180, 270)
6671
"""
6772

68-
def __init__(self, bus, **kwargs):
73+
def __init__(
74+
self, bus: Union[displayio.Fourwire, displayio.I2CDisplay], **kwargs
75+
) -> None:
6976
colstart = 0
7077
# Patch the init sequence for 32 pixel high displays.
7178
init_sequence = bytearray(_INIT_SEQUENCE)

0 commit comments

Comments
 (0)