subprocess.Popen: overloads for set stdin/stdout/stderr attributes?
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 5.1k
- 派生
- 2.1k
- 平均合并
- 1 天 19 小时
- 30 天内合并 PR
- 82
描述
When passing in stdin, stdout, or stderr those attributes are also set on the Popen instances, i.e. not Optional/None.
Given the many overloads there are already (https://github.com/python/typeshed/blob/2d82e1fb8bcedc75be3ae91f911472931c92490a/stdlib/3/subprocess.pyi#L844-L1156) and that this would (AFAIK) have to multiply them, this might not really be feasible/practical though?
Ref: https://github.com/python/typeshed/commit/76b295a66919dcb3719e73011747dbcbc321c1d3 made them Optional by default.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 stdlib/3/subprocess.pyi 开始,重点查看 844-1156 行附近的 Popen 重载,并将其与使属性默认为 Optional 的相关 commit 进行比较。确定如何表示 stdin、stdout 和 stderr 参数,同时避免不切实际地大量增加重载数量。完成的标准是:传入的 streams 被反映为非 Optional 属性,并且现有的重载行为仍然正确。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100