python / python/typing_extensions

Run the CPython typing test suite against typing-extensions

オープン
#606 コメント 14 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
583
フォーク
146
平均マージ
10時間 11分
マージ済み PR(30日)
5

説明

I propose to add a workflow that:

  • Grabs test_typing.py from CPython
  • Replaces all typing imports with typing_extensions through some hackery (either sed or some cleverness with importlib)
  • Runs the test suite

This would help us catch issues where something got changed in CPython and we didn't reapply it to our variant. For example, this would allow us to catch issues in our TypedDict implementation, which is currently different from CPython's on all versions.

We'd have to run this only on matching versions (e.g., run the CPython tests from the 3.14 branch on Python 3.14) because the CPython tests may rely on new syntax or standard library features.

Feel free to pick this up if you see this and are interested! I may do it eventually when I find time.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

まず、リポジトリに既存する workflow と CPython の test_typing.py スイートを調査します。対応する CPython ブランチを取得し、typing の import を typing_extensions に置き換え、各スイートを対応する Python バージョンで実行する方法を確認します。workflow が互換性のあるスイートを実行し、typing_extensions に差異がある場合に失敗を報告すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
ci-cd, testing-qa
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

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

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