Skip to content

Commit 9859527

Browse files
authored
Merge pull request #16 from tcfranks/main
resolves #13 Missing Type Annotations
2 parents c1a7185 + 0142c76 commit 9859527

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

adafruit_ssd1327.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,19 @@
5151
b"\xAF\x00" # DISPLAY_ON
5252
)
5353

54+
5455
# pylint: disable=too-few-public-methods
5556
class SSD1327(displayio.Display):
56-
"""SSD1327 driver"""
57+
"""SSD1327 driver
58+
59+
:param ~displayio.I2CDisplay bus: The data bus the display is on
60+
:param int height: (keyword-only) The height of the screen
61+
:param int width: (keyword-only) The width of the screen
62+
:param int rotation: (keyword-only) The rotation/orientation of the
63+
screen, in degrees
64+
"""
5765

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

0 commit comments

Comments
 (0)