Skip to content

Commit 0e64e85

Browse files
committed
pylint fixes adafruit#2
1 parent dda5f56 commit 0e64e85

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

adafruit_debouncer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def __init__(self, pin, short_duration=0.2, long_duration=0.5, active_down=True,
141141
self.short_to_show = 0
142142
self.long_registered = False
143143
self.long_showed = False
144-
super(Button, self).__init__(pin, **kwargs)
144+
super().__init__(pin, **kwargs)
145145

146146
def _pushed(self):
147147
return (self.active_down and super().fell) or (not self.active_down and super().rose)

examples/debouncer_multi.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2022 david gauchard
2+
# SPDX-License-Identifier: MIT
3+
14
import board
25
import digitalio
36
from adafruit_debouncer import Button

0 commit comments

Comments
 (0)