Skip to content

Commit 9d91ec8

Browse files
authored
Merge pull request #52 from jepler/remove-bad-whitespace-directive
remove bad-whitespace pylint directive
2 parents 88738da + 432d392 commit 9d91ec8

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

adafruit_seesaw/keypad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class Keypad(Seesaw):
8181
EDGE_RISING = 3
8282

8383
def __init__(self, i2c_bus, addr=0x49, drdy=None):
84-
super(Keypad, self).__init__(i2c_bus, addr, drdy)
84+
super().__init__(i2c_bus, addr, drdy)
8585
self._interrupt_enabled = False
8686

8787
@property

adafruit_seesaw/tftshield18.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class TFTShield18(Seesaw):
8484
_button_mask = 0xFF
8585

8686
def __init__(self, i2c_bus=board.I2C(), addr=0x2E):
87-
super(TFTShield18, self).__init__(i2c_bus, addr)
87+
super().__init__(i2c_bus, addr)
8888
self.pin_mode(_TFTSHIELD_RESET_PIN, self.OUTPUT)
8989
self.pin_mode_bulk(self._button_mask, self.INPUT_PULLUP)
9090

examples/seesaw_crickit_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from board import SCL, SDA
22
import busio
3+
from adafruit_motor import servo
34
from adafruit_seesaw.seesaw import Seesaw
45
from adafruit_seesaw.pwmout import PWMOut
5-
from adafruit_motor import servo
66

77
# from analogio import AnalogOut
88
# import board

examples/seesaw_joy_featherwing.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66

77
from adafruit_seesaw.seesaw import Seesaw
88

9-
# pylint: disable=bad-whitespace
109
BUTTON_RIGHT = const(6)
1110
BUTTON_DOWN = const(7)
1211
BUTTON_LEFT = const(9)
1312
BUTTON_UP = const(10)
1413
BUTTON_SEL = const(14)
15-
# pylint: enable=bad-whitespace
1614
button_mask = const(
1715
(1 << BUTTON_RIGHT)
1816
| (1 << BUTTON_DOWN)

examples/seesaw_minitft_featherwing.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from adafruit_seesaw.seesaw import Seesaw
77

8-
# pylint: disable=bad-whitespace
98
BUTTON_RIGHT = const(7)
109
BUTTON_DOWN = const(4)
1110
BUTTON_LEFT = const(3)
@@ -14,7 +13,6 @@
1413
BUTTON_A = const(10)
1514
BUTTON_B = const(9)
1615

17-
# pylint: enable=bad-whitespace
1816
button_mask = const(
1917
(1 << BUTTON_RIGHT)
2018
| (1 << BUTTON_DOWN)

0 commit comments

Comments
 (0)