Skip to content

Commit 311a02d

Browse files
committed
Don't type check this statement
.. for compatibility, find_device can take a single device as well as a sequence of devices. However, the static type info only permits the sequence form. This quiets the mypy diagnostic without adding any extra bytecode to mpy files
1 parent 9661aa8 commit 311a02d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_hid/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def find_device(
3636
"""Search through the provided sequence of devices to find the one with the matching
3737
usage_page and usage."""
3838
if hasattr(devices, "send_report"):
39-
devices = [devices]
39+
devices = [devices] # type: ignore
4040
for device in devices:
4141
if (
4242
device.usage_page == usage_page

0 commit comments

Comments
 (0)