python / python/mypy

Expose the proper plugin in the published mypy version

Offen
#10,306 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

feature topic-plugins
Vorherrschende Sprache
Python
Sterne
20.6k
Forks
3.3k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

Feature
The misc/proper_plugin.py is currently not packaged with mypy. Can we expose it as part of mypy itself?

Pitch
I think it would be wise to have a single source of truth for the proper_plugin.py. As the mypy project already uses it to validate internal plugins like the dataclasses, it should stay up to date. Some projects copy the file to their project, but that can cause confusing from not being up to date (i.e. https://github.com/python/mypy/issues/8047#issuecomment-560124874). I think externally developed plugins could benefit from the plugin. So perhaps exposing it as mypy.misc.proper_plugin?

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit misc/proper_plugin.py und dem angeforderten Importpfad mypy.misc.proper_plugin. Prüfe, wie das veröffentlichte Paket von mypy derzeit Module einbindet, und bestimme, welche Änderung an der Paketierung erforderlich ist. Als erledigt gilt die Aufgabe, wenn das Proper-Plugin über das veröffentlichte mypy-Paket verfügbar ist, ohne dass Projekte es kopieren müssen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
tooling
Issue-Typ
Feature
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

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