Typing for wxPython

Hello,

We have been using wxPython for a long time.
Recently we went to Python 3.10, which has a lot of cool new static typing options.
So, we have been slowly adding typing to our entire codebase.
Which has been super helpful to find some new bugs.

We have been building wx typing stubs too, but manually adding classes became a lot of work.
So, we created a generator that scapes the WxPython docs to generate python typing stubs.

Because we put a little bit of effort into it, we decided to make them publicly available.
So hopefully you will find them helpful as well. Let us know what you think.

types-wxpython · PyPI
AlexionSoftware/types-wxpython: Python typing for wxPython (github.com)

4 Likes