ProcessPoolExecutor initializer 3.11 overloads return object?
オープン
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 5.1k
- フォーク
- 2.1k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 82
説明
The docs say:
initializer is an optional callable that is called at the start of each worker process;
No mention of it returning anything.
And type is Callable[..., None] as expected:
But then for >=3.11 there's this overload:
Seems to have come in on 8b3b6bf7cdbb8e5f3e842a8bfb1b654e73f10332.
@AlexWaygood am I missing something? 🤔
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
stdlib/concurrent/futures/process.pyi の ProcessPoolExecutor 宣言、特に 157-159 行と 173-179 行を読み、issue にリンクされている Python 3.11 のドキュメントと比較してください。overload の由来を確認するために commit 8b3b6bf7cdbb8e5f3e842a8bfb1b654e73f10332 を調べてください。stub がドキュメントに記載された initializer の動作を正確に表しているかどうかを解決できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100