Could you update the type in the docstrings as well? thanks!