应用 AI Assistant 为 Python 中的函数添加类型注解。