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

Aberta
#4,698 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
compilers

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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)
==
Linguagem predominante
Python
Estrelas
20.6k
Forks
3.3k
Merge médio
1d 18h
PRs com merge (30d)
54

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de python/mypy

Todas as issues de python/mypy

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.