Add type annotations to clarify docs