Skip to content

Commit 254544a

Browse files
committed
Add Missing Type Annotations
1 parent 063287a commit 254544a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_displayio_ssd1305.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
try:
3535
from typing import Union
36+
from busio import I2C
3637
except ImportError:
3738
pass
3839

@@ -71,7 +72,7 @@ class SSD1305(displayio.Display):
7172
"""
7273

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

0 commit comments

Comments
 (0)