Skip to content

Commit 9562826

Browse files
committed
fallback for Literal type py37
1 parent 84b9ba7 commit 9562826

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adafruit_vc0706.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@
2828
from micropython import const
2929

3030
try:
31-
from typing import Optional, Literal
31+
from typing import Optional
3232
import circuitpython_typing
3333
import busio
34+
try:
35+
from typing import Literal
36+
except ImportError:
37+
from typing_extensions import Literal
3438
except ImportError:
3539
pass
3640

0 commit comments

Comments
 (0)