Skip to content

Commit bc03280

Browse files
committed
Labeled typing imports, updated import order
1 parent 500170b commit bc03280

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

adafruit_max7219/bcddigits.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
from adafruit_max7219 import max7219
1111

1212
try:
13+
# Used only for typing
14+
from typing import List
1315
import digitalio
1416
import busio
15-
from typing import List
1617
except ImportError:
1718
pass
1819

adafruit_max7219/matrices.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from adafruit_max7219 import max7219
1111

1212
try:
13+
# Used only for typing
1314
import digitalio
1415
import busio
1516
except ImportError:

adafruit_max7219/max7219.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
import adafruit_framebuf as framebuf
4545

4646
try:
47+
# Used only for typing
4748
import busio
4849
except ImportError:
4950
pass

0 commit comments

Comments
 (0)