Skip to content

Commit a240b86

Browse files
committed
resolves #13 Missing Type Annotations
1 parent c1a7185 commit a240b86

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

adafruit_ssd1327.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,14 @@
5353

5454
# pylint: disable=too-few-public-methods
5555
class SSD1327(displayio.Display):
56-
"""SSD1327 driver"""
56+
"""SSD1327 driver
57+
kwargs:
58+
param: height in pixels
59+
param: width in pixels
60+
param: optional rotation : 0 < rotation < 180 results in 90 degree rotation
61+
"""
5762

58-
def __init__(self, bus, **kwargs):
63+
def __init__(self, bus: displayio.I2CDisplay, **kwargs) -> None:
5964
# Patch the init sequence for 32 pixel high displays.
6065
init_sequence = bytearray(_INIT_SEQUENCE)
6166
height = kwargs["height"]

0 commit comments

Comments
 (0)