Skip to content

Commit ca28537

Browse files
authored
Merge pull request #26 from Neradoc/patch-1
Fix type import in peripherals
2 parents 948c509 + 865976e commit ca28537

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adafruit_funhouse/peripherals.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
2828
"""
2929

30-
from typing import Optional
3130
import board
3231
from digitalio import DigitalInOut, Direction, Pull
3332
from analogio import AnalogIn
@@ -37,6 +36,11 @@
3736
import adafruit_ahtx0
3837
import adafruit_dotstar
3938

39+
try:
40+
from typing import Optional
41+
except ImportError:
42+
pass
43+
4044
__version__ = "0.0.0-auto.0"
4145
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FunHouse.git"
4246

0 commit comments

Comments
 (0)