Skip to content

Commit cfdee03

Browse files
authored
Merge pull request #3 from Neradoc/fiximport
Make the typing import excepted
2 parents ab67238 + 60a3579 commit cfdee03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adafruit_usb_host_mass_storage.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@
1414

1515
import struct
1616
import time
17-
from typing import Optional
1817
import usb.core
1918
from micropython import const
2019
import adafruit_usb_host_descriptors
2120

21+
try:
22+
from typing import Optional
23+
except ImportError:
24+
pass
25+
2226
__version__ = "0.0.0+auto.0"
2327
__repo__ = (
2428
"https://github.com/adafruit/Adafruit_CircuitPython_USB_Host_Mass_Storage.git"

0 commit comments

Comments
 (0)