ImportError: cannot import name 'Literal' from 'typing' (/usr/lib64/python3.7/typing.py)
EvilWizard99 opened this issue · 1 comments
EvilWizard99 commented
line 1, in <module>
from tuya_iot import TuyaOpenAPI
File "/usr/local/lib/python3.7/site-packages/tuya_iot/__init__.py", line 2, in <module>
from .device import TuyaDevice, TuyaDeviceListener, TuyaDeviceManager
File "/usr/local/lib/python3.7/site-packages/tuya_iot/device.py", line 7, in <module>
from typing import Any, Literal, Optional
ImportError: cannot import name 'Literal' from 'typing' (/usr/lib64/python3.7/typing.py)
python/typing#707 explains that is how it's staying in 3.7 stdlib & suggests using typing_extensions