yinkaisheng / Python-UIAutomation-for-Windows

🐍Python 3 wrapper of Microsoft UIAutomation. Support UIAutomation for MFC, WindowsForm, WPF, Modern UI(Metro UI), Qt, IE, Firefox, Chrome ...
Apache License 2.0
2.3k stars 462 forks source link

Typing improvements #260

Closed fabioz closed 7 months ago

fabioz commented 9 months ago

This PR adds a bunch of typing fixes (on some cases the structure had to be changed a bit, but semantically things should still be the same).

This does not fix all issues with mypy, but does improve the situation ;)

yinkaisheng commented 7 months ago

Thanks for your contribution. But it seems the code is not compatible with older versions 3.4~3.8. I will roll back the incompatible parts.

fabioz commented 7 months ago

Seems fair -- personally, I'm trying to not use unsupported python versions: https://devguide.python.org/versions/, but I get that you may want to support those ;)