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

Offen
#4,698 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
compilers

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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)
==
Vorherrschende Sprache
Python
Sterne
20.6k
Forks
3.3k
Ø Merge
1 T. 18 Std.
Gemergte PRs (30 T.)
54

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus python/mypy

Alle Issues in python/mypy

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.