Submodule in 'import from' not detected when added
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 20.6k
- Forks
- 3.3k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
This test case still fails on master:
[case testSubmoduleAddedIncremental]
import m
[file m.py]
from a import b
[file a/__init__.py]
[file a/b.py.2]
[out]
tmp/m.py:1: error: Module "a" has no attribute "b"
[out2]
It is more tricky than other situations I fixed before, because on one hand I don't want to add something that we are not sure is a module to suppressed, but OTOH I don't want to add yet another concept (like extra_suppressed?) to cache meta.
cc @JukkaL
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem Testfall testSubmoduleAddedIncremental und reproduziere seinen Fehler auf master. Lies das umgebende Verhalten des inkrementellen Modul-Caches, insbesondere den Umgang mit unterdrückten Metadaten. Erledigt ist die Aufgabe, wenn der Fall nicht mehr meldet, dass das Modul "a" kein Attribut "b" hat, ohne ein unbegründetes Cache-Konzept einzuführen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- compilers
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100