Skip to content

Commit 3188d87

Browse files
committed
pylint fixes
1 parent 75f9866 commit 3188d87

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Fruit_Jam/Larsio_Paint_Music/code.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,11 @@ def run(self):
6969
time.sleep(0.5)
7070
gc.collect()
7171

72-
# Try to find the mouse with multiple attempts
73-
MAX_ATTEMPTS = 5
74-
RETRY_DELAY = 1 # seconds
75-
72+
# Try to find the mouse
7673
if self.ui_manager.find_mouse():
7774
print("Mouse found successfully!")
7875
else:
79-
print("WARNING: Mouse not found after multiple attempts.")
76+
print("WARNING: Mouse not found.")
8077
print("The application will run, but mouse control may be limited.")
8178

8279
# Enter the main loop

Fruit_Jam/Larsio_Paint_Music/input_handler.py

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

88
import array
99
import gc
10+
11+
# pylint: disable=import-error
1012
from adafruit_usb_host_mouse import find_and_init_boot_mouse
1113

1214
# pylint: disable=invalid-name,no-member,too-many-instance-attributes,too-many-arguments

0 commit comments

Comments
 (0)