Skip to content

Commit

Permalink
Merge pull request #75 from adafruit/pylint-fix
Browse files Browse the repository at this point in the history
Fixed linting
  • Loading branch information
tekktrik committed Nov 10, 2022
2 parents d11d147 + 274d51e commit 56346aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions adafruit_character_lcd/character_lcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class Character_LCD:

# pylint: disable-msg=too-many-arguments
def __init__(
# pylint: disable=invalid-name
self,
rs: digitalio.DigitalInOut,
en: digitalio.DigitalInOut,
Expand All @@ -132,6 +133,7 @@ def __init__(
d7: digitalio.DigitalInOut,
columns: int,
lines: int,
# pylint: enable=invalid-name
) -> None:

self.columns = columns
Expand Down
4 changes: 1 addition & 3 deletions adafruit_character_lcd/character_lcd_spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,19 @@ class Character_LCD_SPI(Character_LCD_Mono): # pylint: disable=too-few-public-m
lcd = character_lcd.Character_LCD_SPI(spi, latch, 16, 2)
"""

def __init__(
def __init__( # pylint: disable=too-many-arguments
self,
spi: busio.SPI,
latch: digitalio.DigitalInOut,
columns: int,
lines: int,
backlight_inverted: bool = False,
):
# pylint: disable=too-many-arguments
"""Initialize character LCD connected to backpack using SPI connection
on the specified SPI bus and latch line with the specified number of
columns and lines on the display. Optionally specify if backlight is
inverted.
"""
# pylint: enable=too-many-arguments

self._shift_register = adafruit_74hc595.ShiftRegister74HC595(spi, latch)
reset = self._shift_register.get_pin(1)
Expand Down

0 comments on commit 56346aa

Please sign in to comment.