Skip to content

resolves #13 Missing Type Annotations #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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