Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン 初心者向け
#16,538 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@dannyshafer がすでに取り組んでいます。

2026年10月15日 から。

  • #16540 @dannyshafer による — オープン

評価

難易度
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 が現れることと、リポジトリのスタブテストと 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時間
マージ済み PR(30日)
64

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python/typeshed のほかの issue

python/typeshed の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。