Clarify usage of type hints in the standard-library modules
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 48/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
调研方向
首先查看链接的讨论和 pull request 评论,了解当前政策及其依据,然后找到适当的 devguide 文档页面。当指南正式说明标准库的类型提示政策,包括其依据和例外情况时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
I think that Alex summarized the issue pretty well:
In general our policy is currently not to add type hints to standard-library modules in the
Lib/directory (there are some exceptions, but they're all pretty specific). I think we still have yet to add some formal documentation around this in the devguide (we really need to!), but you can see some rationales here:
Originally posted by @AlexWaygood in https://github.com/python/cpython/pull/117583#discussion_r1556105954
- 主要语言
- Python
- 星标
- 2.1k
- 派生
- 1k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 12
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
python/devguide 的其他 Issue
-
type-feature
难度 2/5 1-3 小时 新手友好度 68/100
-
type-feature
难度 2/5 1-3 小时 新手友好度 68/100
-
topic-building python type-feature
难度 2/5 1-3 小时 新手友好度 65/100
-
needs: decision topic-test type-bug
难度 2/5 1-3 小时 新手友好度 78/100
-
topic-dev process type-feature
难度 2/5 1-3 小时 新手友好度 62/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
难度 2/5 1-3 小时 新手友好度 88/100
OpenHands/extensions#626 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
CSCfi/sd-search-api#39 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 68/100
StevenBlack/hosts#3255 ·