Skip to content

Commit b6101ea

Browse files
committed
Use underscore for throwaway variable
1 parent 72abb17 commit b6101ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_cursorcontrol/cursorcontrol_cursormanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _read_joystick_x(self, samples=3):
115115
reading = 0
116116
# pylint: disable=unused-variable
117117
if hasattr(board, "JOYSTICK_X"):
118-
for sample in range(0, samples):
118+
for _ in range(0, samples):
119119
reading += self._joystick_x.value
120120
reading /= samples
121121
return reading

0 commit comments

Comments
 (0)