Open
Description
https://mypy.readthedocs.io/en/latest/cheat_sheet_py3.html
https://mypy.readthedocs.io/en/latest/existing_code.html
This would allow us to have better docs using https://pypi.org/project/sphinx-autodoc-typehints/
Ideally, we would use inline type declarations, but they can't be used if the code needs to be Python 2 compatible. For Python 2 compatibility, you must use comments, but this requires Python 3.8 or typed-ast be installed in order for sphinx-autodoc-typehints to be able to read them.