Skip to content

Commit 2c23794

Browse files
committed
Add Missing Type Annotations
1 parent 6272c21 commit 2c23794

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adafruit_displayio_ssd1305.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333

3434
try:
3535
from typing import Union
36-
from busio import I2C
3736
except ImportError:
3837
pass
3938

@@ -71,7 +70,9 @@ class SSD1305(displayio.Display):
7170
One of (0, 90, 180, 270)
7271
"""
7372

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

0 commit comments

Comments
 (0)