MagicStack / MagicStack/asyncpg
[Feature] mypy typings
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 8.1k
- 派生
- 468
- PR 合并指标
- 30 天内没有已合并 PR
描述
Currently, `asyncpg` is untyped and has to be ignored as an import when using [`mypy`](https://mypy.readthedocs.io/en/stable/). Because of this, I created an [`asyncpg-stubs` package](https://github.com/bryanforbes/asyncpg-stubs/) generated from `stubgen` that I use in my own projects as a git dependency, but it would be great to have these in the main library (and verified by the developers). If this is something that is desired, I would be willing to create the initial PR.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查使用 stubgen 生成的现有 asyncpg-stubs 包,并将其覆盖范围与 asyncpg 库进行比较。确认应如何将 stubs 集成到主库中,以及将如何执行 mypy 验证;当 asyncpg 提供由项目验证且持续维护的类型定义时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- postgresql, python
- 领域
- database
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100