Skip to content

Commit

Permalink
Merge pull request #16 from tcfranks/main
Browse files Browse the repository at this point in the history
resolves #13 Missing Type Annotations
  • Loading branch information
tekktrik committed Aug 27, 2022
2 parents c1a7185 + 0142c76 commit 9859527
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions adafruit_ssd1327.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,19 @@
b"\xAF\x00" # DISPLAY_ON
)


# pylint: disable=too-few-public-methods
class SSD1327(displayio.Display):
"""SSD1327 driver"""
"""SSD1327 driver
:param ~displayio.I2CDisplay bus: The data bus the display is on
:param int height: (keyword-only) The height of the screen
:param int width: (keyword-only) The width of the screen
:param int rotation: (keyword-only) The rotation/orientation of the
screen, in degrees
"""

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

0 comments on commit 9859527

Please sign in to comment.