tuya / tuya-iot-python-sdk

Tuya IoT Python SDK for Tuya Open API.
MIT License
130 stars 49 forks source link

No need to import built in Types #10

Closed yuvalabou closed 3 years ago

yuvalabou commented 3 years ago

Use built in type hints to reduce import penalty

tsutsuku commented 3 years ago

We extract to B logic to another library. So can you fix conflicting files, so we can review and merge it?

yuvalabou commented 3 years ago

Why can't I find that file? Where is it?

tsutsuku commented 3 years ago

@yuvalabou Here is the to B logic library https://github.com/tuya/tuya-connector-python

frenck commented 3 years ago

@yuvalabou @tsutsuku

This PR breaks support for Python 3.6, 3.7 & 3.8. The use of built-in typehints for collections (like lists or dicts) have been introduced in Python 3.9.

This breaks Home Assistant support, as that is currently on 3.8.