Skip to content

Commit 2719125

Browse files
author
Brennen Bearnes
committed
make pylint happy about indentation and inheriting from object
1 parent 238dbf0 commit 2719125

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

adafruit_character_lcd/character_lcd_rgb.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _map(xval, in_min, in_max, out_min, out_max):
107107

108108

109109
#pylint: disable-msg=too-many-instance-attributes
110-
class Character_LCD_RGB(object):
110+
class Character_LCD_RGB:
111111
""" Interfaces with a character LCD
112112
:param ~digitalio.DigitalInOut rs: The reset data line
113113
:param ~digitalio.DigitalInOut en: The enable data line
@@ -166,10 +166,10 @@ def __init__(self, rs, en, d4, d5, d6, d7, cols, lines,
166166
pin.direction = digitalio.Direction.OUTPUT
167167
else:
168168
if not hasattr(pin, 'duty_cycle'):
169-
raise TypeError(
170-
'RGB LED objects must be instances of digitalio.DigitalInOut'
171-
' or pulseio.PWMOut, or provide a compatible interface.'
172-
)
169+
raise TypeError(
170+
'RGB LED objects must be instances of digitalio.DigitalInOut'
171+
' or pulseio.PWMOut, or provide a compatible interface.'
172+
)
173173

174174
# initialize the display
175175
self._write8(0x33)

0 commit comments

Comments
 (0)