We can add [type annotations in comments and still be python2 compatible](https://peps.python.org/pep-0484/#suggested-syntax-for-python-2-7-and-straddling-code).