python / python/typing_extensions
Run the CPython typing test suite against typing-extensions
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 583
- Forks
- 146
- Merge medio
- 10 h 11 min
- PR fusionados (30 d)
- 5
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza examinando los workflows existentes del repositorio y la suite test_typing.py de CPython. Determina cómo obtener las ramas correspondientes de CPython, reemplazar los imports de typing por typing_extensions y ejecutar cada suite con su versión de Python correspondiente. Se considera terminado cuando el workflow ejecuta las suites compatibles e informa de los fallos cuando typing_extensions difiere.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- ci-cd, testing-qa
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100