python - Pandas 的 Mypy/typeshed stub

只是检查是否有人在收听,已经为 `pandas` 生成了一组可以正常工作的 mypy/typeshed stub 。我天真地在本地 pandas 安装上运行了 stubgen,这产生了一些错误。我可以从我必须开始的事情开始,但希望其他人把球推得更远。 (虽然有一张旧票 stub ,但在 GitHub 上没有明显的结果。)

最佳答案

到现在(2021 年 3 月)有 a dedicated pandas stub project进行中。然而,它不是由 pandas 团队开发的(感谢@remeus 指出)。 data-science-types 项目已弃用。在 GitHub 上 they write :

⚠️ this project has mostly stopped development ⚠️

The pandas team and the numpy team are both in the process of integrating type stubs into their codebases, and we don't see the point of competing with them.

NumPy stub 曾经在一个单独的项目中,但现在 have been merged进入主 git 仓库:

These stubs have been merged into NumPy, and all further development will happen in the NumPy main repo. We welcome your contributions there!

2022年7月,pandas-stubs包集成到pandas GitHub项目http://github.com/pandas-dev/pandas-stubs . They write :

Starting from July 2022 pandas_stubs package will no longer be sourced from here but instead from a repository owned and maintained by the core pandas team

关于python - Pandas 的 Mypy/typeshed stub ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62544003/

相关文章:

javascript - 为什么外部 javascript 文件不工作 Rails 6?

postgresql - 在typeorm中过滤多对多关系

c# - 如何以编程方式授予虚拟用户对文件夹(或文件)的权限

javascript - 为什么 useState 不在单元测试(Jest、Enzyme)中重新渲染

java - 如何获取 Azure blob 下载中的 blob 下载进度

ios - Safari 或 IOS 中视频的 aws-sdk getSignedUrl 不起作用

python - CondaEnvException : Pip failed. 尝试使用 .yml

python - 如何防止vscode/ms-python清除测试结果?

c# - SqlBulkTools - 更新

firebase - 使用 Firebase 通过 OAuth2 创建登录名时指定 UserId 格