Pylint now exposes its type annotations. Closes #5488 and #2079