Spec: `Final` section could use better definition for `Final` vs. `Final[X]`
未关闭
适合新手
还没有人认领这个 Issue。
topic: typing spec
- 主要语言
- Python
- 星标
- 1.8k
- 派生
- 302
- 平均合并
- 23 小时
- 30 天内合并 PR
- 8
描述
Came up in #2353: Currently, the syntax section for Final uses the following definitions:
Finalmay be used in one of several forms:
- With an explicit type, using the syntax
Final[<type>][...]- With no type annotation. [...]
As @carljm points out, these definitions are not great. I suggest to give them better names and use those consistently in the spec (and elsewhere). Carl used "bare" for the latter case, which I like. Maybe "explicitly typed" for the former? "When using a bare Final ..." or "When using an explicitly typed Final ..."
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从规范中关于 Final 的语法部分开始,并在规范及相关文档中查找对 Final 和 Final[X] 的现有描述。完成的标准是:这两种形式都有清晰且命名一致的定义,使用“裸”和“显式类型化”等术语,并且其他地方不再残留相互冲突的措辞。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 72/100