Skip to content

Commit 67fadb5

Browse files
committed
pylint fixes
1 parent 95181eb commit 67fadb5

File tree

1 file changed

+9
-6
lines changed
  • Metro/Metro_RP2350_Match3/match3_game

1 file changed

+9
-6
lines changed

Metro/Metro_RP2350_Match3/match3_game/code.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,10 @@
268268
try:
269269
mouse_interface_index, mouse_endpoint_address = (find_endpoint(device))
270270
if mouse_interface_index is not None and mouse_endpoint_address is not None:
271-
if mouse_interface_index in mouse_interface_indexes and mouse_endpoint_address in mouse_endpoint_addresses:
271+
if (
272+
mouse_interface_index in mouse_interface_indexes and
273+
mouse_endpoint_address in mouse_endpoint_addresses
274+
):
272275
print('found index/address twice')
273276
continue
274277
# if it does have a mouse endpoint then add information to the
@@ -409,12 +412,12 @@ def atexit_callback():
409412
detached_from_device = detached_interfaces[_i]
410413

411414
if detached_from_device:
412-
for intf in detached_from_device:
413-
if not _mouse.is_kernel_driver_active(intf):
414-
_mouse.attach_kernel_driver(intf)
415-
print(f'#{_i} Index: {intf} (reattaching)')
415+
for _intf in detached_from_device:
416+
if not _mouse.is_kernel_driver_active(_intf):
417+
_mouse.attach_kernel_driver(_intf)
418+
print(f'#{_i} Index: {_intf} (reattaching)')
416419
else:
417-
print(f'#{_i} Index: {intf} (Not Attaching)')
420+
print(f'#{_i} Index: {_intf} (Not Attaching)')
418421

419422
supervisor.runtime.autoreload = original_autoreload_val
420423

0 commit comments

Comments
 (0)