Type hints for `pathlib.types`
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 36k
- PR マージ指標
- PR 指標を取得中
説明
Feature or enhancement
The pathlib.types module is new in 3.14, and contains a single public class: pathlib.types.PathInfo.
This module also contains a few private classes: _PathParser, _JoinablePath, _ReadablePath and _WritablePath.
As the pathlib.types module is not imported by pathlib, I think we're free to add proper type annotations to the entire module, including the private classes. I think this will help clarify the interface.
I'd like these hints to be compatible with the oldest version of Python still receiving security updates (3.9 at time of writing) because I'm hoping to provide a PyPI package from this module.
Linked PRs
- gh-131639
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず pathlib.types モジュールとリンクされた PR gh-131639 を確認し、作業の現在の状態を把握します。アノテーションを Python 3.9 と互換性のある状態に保つ方法を確認し、issue で名前が挙げられている公開クラスと非公開クラスを検討します。モジュールに完全で互換性のある型ヒントが含まれ、意図されたインターフェースを変更していなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- developer-experience
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100