Commit 49c5fcf
committed
Shrink keyboard.py mpy size
* Use list[usb_hid.Device] allows getting rid of typing import.
* can then make `import usb_hid` unconditional
This decreases the mpy-cross size of the file to 1186 bytes, smaller
than the baseline of 1191 bytes before this PR. (down from 1234 bytes)1 parent 7c417db commit 49c5fcf
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 20 | | |
25 | 21 | | |
26 | 22 | | |
| |||
39 | 35 | | |
40 | 36 | | |
41 | 37 | | |
42 | | - | |
| 38 | + | |
43 | 39 | | |
44 | 40 | | |
45 | 41 | | |
| |||
0 commit comments