Run the CPython typing test suite against typing-extensions

Abierto
#606 14 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
ci-cd, testing-qa

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.

Descripción

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.

Lenguaje dominante
Python
Estrellas
583
Forks
146
Merge medio
10 h 11 min
PR fusionados (30 d)
5

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de python/typing_extensions

Todos los issues de python/typing_extensions

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.