Expand the reach of keyword typo suggestions
@johnslavik ya está trabajando en esto.
Desde el 20/8/2026.
- Lenguaje dominante
- Python
- Estrellas
- 77.2k
- Forks
- 35.9k
- Métricas de merge de PR
- Métricas de PR pendientes
Descripción
Feature or enhancement
Keyword typo suggestions won't work for most realistically big source files, because
- we have a cap of 1024 characters of the source we recompile for probing
- most Python source files in practice are rather bigger
My idea is to try to shrink the source being recompiled for probing keyword typos by cutting the smallest possible window of the full source and using that window for recompilation instead. The center of the window would be in the SyntaxError reported line and offset. The window would be shortest distance line up that doesn't start with indent and any line down without a \ continuation.
As a result, keyword typo suggestions could have way further reach for realistic cases.
I might include more illustrations later. cc @pablogsal
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.
Evaluación
Este issue todavía no se ha evaluado.