Skip to content

Commit 057f5fd

Browse files
authored
Merge pull request #1 from FoamyGuy/fix_typing_import
wrap typing imports in try/except
2 parents 2d9c651 + 881ee34 commit 057f5fd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adafruit_wiz.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
"""
2727

2828
import json
29-
from typing import Tuple, Union
29+
30+
try:
31+
from typing import Tuple, Union
32+
except ImportError:
33+
pass
3034

3135
import adafruit_connection_manager
3236

0 commit comments

Comments
 (0)