Description
- related to Adding type hints to the code #1539
Now that we're starting to get type hints in more files, I'd like to have CI give us feedback on type hints.
This can be allowed to fail on most files right now. I don't love the way github actions handles that (last I checked, it made "allow fail" items look like they've passed even if they haven't so people may not look at them) but even if I'm not sure new contributors will know to look, it will be useful for more experienced contributors and folk reviewing pull requests to have the report generated for us.
As we get files into a good state, we could add them to the list of files where type checker fails are no longer allowed, and eventually the whole code base should be required to pass the type checker tests.
mypy was the top of my list at one point but python type checkers generally follow the same PEPs so if something else works better we can go there. I use Visual Studio Code while reviewing markdown files so a recommendation for tooling that works with that particular IDE might be nice for our documentation too.
Some talks that might be useful for someone interested in this issue: