python / python/typing_extensions
Run the CPython typing test suite against typing-extensions
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 583
- Forks
- 146
- Ø Merge
- 10 Std. 11 Min.
- Gemergte PRs (30 T.)
- 5
Beschreibung
I propose to add a workflow that:
- Grabs
test_typing.pyfrom CPython - Replaces all
typingimports withtyping_extensionsthrough 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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die vorhandenen Workflows des Repositorys und die CPython-Suite test_typing.py zu untersuchen. Ermittle, wie passende CPython-Branches abgerufen, Imports aus typing durch typing_extensions ersetzt und jede Suite unter ihrer entsprechenden Python-Version ausgeführt werden. Als erledigt gilt die Aufgabe, wenn der Workflow die kompatiblen Suiten ausführt und Fehler meldet, wenn typing_extensions davon abweicht.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- ci-cd, testing-qa
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100