fine-grained checking with cache misses deleted module imported with import from

Abierto
#4,698 0 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
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
compilers

Línea de trabajo

Start with the testDeletionOfSubmoduleTriggersImportFrom1-skip-nocache test and its cache/no-cache fixture, including the p/q.py deletion and recreation steps. Reproduce the case without the harness reporting p/q.py as changed, then investigate how the daemon tracks this imported submodule. Done means the daemon detects the change and reports the expected missing-module error.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug priority-1-normal topic-fine-grained-incremental

The testDeletionOfSubmoduleTriggersImportFrom1-skip-nocache test only passes because the current testfinegrained harness reports p/q.py as changed. The actual daemon fails to detect the change, however, as it never knows to care about p/q.py in the first place.

[case testDeletionOfSubmoduleTriggersImportFrom1-skip-nocache]
-- Different cache/no-cache tests because:
-- missing module error message mismatch
from p import q
[file p/__init__.py]
[file p/q.py]
[delete p/q.py.2]
[file p/q.py.3]
[out]
==
main:1: error: Cannot find module named 'p.q'
main:1: note: (Perhaps setting MYPYPATH or using the "--ignore-missing-imports" flag would help)
==
Lenguaje dominante
Python
Estrellas
20.6k
Forks
3.3k
Merge medio
1 d 18 h
PR fusionados (30 d)
54

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/mypy

Todos los issues de python/mypy

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.