0.910 --install-types doesn't install stubs for 2nd level deps on first run
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 20.6k
- Forks
- 3.3k
- Ø Merge
- 1 T. 18 Std.
- Gemergte PRs (30 T.)
- 54
Beschreibung
Bug Report
I use mypy in CI for a library, that depends on aiochsa. And aiochsa depends on backports.zoneinfo for python prior to 3.9. The first run of mypy --install-types --non-interactive -p my_package (the cache is empty) in python 3.8 environment installs all needed stub packages, except types-backports, causing pipeline to fail with "Library stubs not installed for "backports" (or incompatible with Python 3.8)" error. The second run of the same command installs missing types-backports and pipeline succeeds.
Expected Behavior
mypy --install-types --non-interactive … installs stubs for dependencies of dependencies on the first run (with clean cache).
Actual Behavior
mypy --install-types --non-interactive … installs stubs on the run for 1st level dependencies only.
Your Environment
- Mypy version used: 0.910
- Mypy command-line flags:
--install-types --non-interactive -p … - Python version used: 3.8
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
Reproduziere das Problem mit mypy 0.910 unter Verwendung von Python 3.8, eines leeren Caches und mypy --install-types --non-interactive -p my_package. Verfolge den Einstiegspunkt --install-types und die Ermittlung der Abhängigkeiten für aiochsa und backports.zoneinfo; abgeschlossen ist die Aufgabe, wenn der erste Lauf types-backports installiert und die Pipeline zur Typprüfung erfolgreich durchläuft.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100