Make REPL completions match only syntactically valid keywords and values
未关闭
还没有人认领这个 Issue。
stdlib
topic-repl
type-bug
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- PR 合并指标
- PR 指标待抓取
描述
Bug report
Bug description:
The completion in the above case shows [ not unique ] and gives several suggestions. However, case is the only word to form a valid syntax at this point. It is better to just complete it with case .
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
- gh-122380
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从报告中描述的 CPython REPL 补全行为开始,在主分支上重现 case 示例。补全应仅提供语法上有效的关键字或值,直接补全 case ,而不是显示含义不明确的建议;开始之前请查看链接的 PR gh-122380。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100