Started using type annotations and mypy checking internally. The types are incomplete and not published.