Fix some type hints.