python / python/typing_extensions
Run the CPython typing test suite against typing-extensions
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 583
- Fork
- 146
- Merge medio
- 10h 11m
- PR unite (30g)
- 5
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando i workflow esistenti del repository e la suite test_typing.py di CPython. Determina come recuperare i branch CPython corrispondenti, sostituire gli import da typing con typing_extensions ed eseguire ogni suite sulla versione di Python corrispondente. Il lavoro è completato quando il workflow esegue le suite compatibili e segnala i fallimenti quando typing_extensions diverge.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- ci-cd, testing-qa
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100