Update documentation and typehint.