Skip to content

Commit 56346aa

Browse files
authored
Merge pull request #75 from adafruit/pylint-fix
Fixed linting
2 parents d11d147 + 274d51e commit 56346aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

adafruit_character_lcd/character_lcd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ class Character_LCD:
123123

124124
# pylint: disable-msg=too-many-arguments
125125
def __init__(
126+
# pylint: disable=invalid-name
126127
self,
127128
rs: digitalio.DigitalInOut,
128129
en: digitalio.DigitalInOut,
@@ -132,6 +133,7 @@ def __init__(
132133
d7: digitalio.DigitalInOut,
133134
columns: int,
134135
lines: int,
136+
# pylint: enable=invalid-name
135137
) -> None:
136138

137139
self.columns = columns

adafruit_character_lcd/character_lcd_spi.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,19 @@ class Character_LCD_SPI(Character_LCD_Mono): # pylint: disable=too-few-public-m
5959
lcd = character_lcd.Character_LCD_SPI(spi, latch, 16, 2)
6060
"""
6161

62-
def __init__(
62+
def __init__( # pylint: disable=too-many-arguments
6363
self,
6464
spi: busio.SPI,
6565
latch: digitalio.DigitalInOut,
6666
columns: int,
6767
lines: int,
6868
backlight_inverted: bool = False,
6969
):
70-
# pylint: disable=too-many-arguments
7170
"""Initialize character LCD connected to backpack using SPI connection
7271
on the specified SPI bus and latch line with the specified number of
7372
columns and lines on the display. Optionally specify if backlight is
7473
inverted.
7574
"""
76-
# pylint: enable=too-many-arguments
7775

7876
self._shift_register = adafruit_74hc595.ShiftRegister74HC595(spi, latch)
7977
reset = self._shift_register.get_pin(1)

0 commit comments

Comments
 (0)