richibrics / IoTuring

Your Windows, Linux, macOS computer as MQTT and HomeAssistant integration
https://pypi.org/project/IoTuring/
GNU General Public License v3.0
70 stars 6 forks source link

add various type hints #119

Open lockenkop opened 2 months ago

lockenkop commented 2 months ago

Some of them may be debated upon. Most of the changes are return hints

infeeeee commented 2 months ago

Can you fix the tests? I think you just have to add from __future__ import annotations at the top of some files, usually that's all.

Run the tests locally, you can find which file is the problem exactly: https://github.com/richibrics/IoTuring/blob/main/docs/DEVELOPMENT.md#tests Run it in docker so you can use the same python version.

lockenkop commented 2 months ago

That's what I get for doing this quickly on my train ride. I need to stop using git add . Sorry for that.