Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

`errors` parameter missing in `subprocess.call()`/`subprocess.check_call()`

未关闭 适合新手
#16,538 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python

调研方向

工作位于 stdlib/subprocess.pyi:subprocess.call 和 subprocess.check_call 的重载(约第 498-624 行)缺少 Popen 重载(约第 1065 行)所接受的 errors 参数。先比较一个 Popen 重载与对应的 call 重载,看看 encoding 和 errors 是如何一起进行类型标注的。完成标准是:每个相关的 call/check_call 重载中都出现与 Popen 相同类型的 errors,并且仓库的 stub 测试和 mypy 检查仍然通过。

由索引模型根据 Issue 内容生成。

描述

https://github.com/python/typeshed/blob/86d68f86591c4bf97723350505d2cd28123ab3b6/stdlib/subprocess.pyi#L498-L624

According to the Python documentation and the comments within the stub file, the functions subprocess.call() and subprocess.check_call() should share the same parameters as subprocess.Popen except timeout. However, the errors parameter found in the Popen interface is missing in subprocess.call and subprocess.check_call.

https://github.com/python/typeshed/blob/86d68f86591c4bf97723350505d2cd28123ab3b6/stdlib/subprocess.pyi#L1065

主要语言
Python
星标
5.1k
派生
2.1k
平均合并
1 天 22 小时
30 天内合并 PR
64

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

python/typeshed 的其他 Issue

查看 python/typeshed 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。