Skip to content

Commit ae96b33

Browse files
committed
pylint
1 parent 491373d commit ae96b33

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

adafruit_hid/keyboard.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@
2828
* Author(s): Scott Shawcroft, Dan Halbert
2929
"""
3030

31-
from micropython import const
3231
import time
3332
import usb_hid
3433

34+
from micropython import const
35+
3536
from .keycode import Keycode
3637

3738
class Keyboard:

adafruit_hid/mouse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,5 +155,5 @@ def move(self, x=0, y=0, wheel=0):
155155
wheel -= partial_wheel
156156

157157
@staticmethod
158-
def _limit(d):
159-
return min(127, max(-127, d))
158+
def _limit(dist):
159+
return min(127, max(-127, dist))

0 commit comments

Comments
 (0)