Give users suggestions on how to resolve `Cannot find implementation or library stub for module named "{module}"`
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 20.6k
- Forks
- 3.3k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
Feature
Give users suggestions on how to resolve Cannot find implementation or library stub for module named "{module}".
Pitch
I'm new to the ecosystem and didn't know a command that would fix mypy failing is pip install numpy. I think a suggestion on how to resolve this issue would help out people who don't use Python regularly, like myself.
Current behavior
p.py:1: error: Cannot find implementation or library stub for module named "numpy"
p.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Desired behavior
p.py:1: error: Cannot find implementation or library stub for module named "numpy"
p.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
p.py:1: note: The following command may help: pip install numpy
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 bei der mypy-Diagnose für Cannot find implementation or library stub for module named "{module}" und prüfe die vorhandene Dokumentation zu fehlenden Imports, auf die in der Meldung verwiesen wird. Ermittle, wie Vorschläge wie pip install numpy ausgewählt und angezeigt werden sollten, und verifiziere anschließend, dass die Diagnose einen nützlichen Befehl enthält, ohne die bestehende Ausgabe zu beeinträchtigen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100