Automatization idea: find duplicated constants
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 5.1k
- Forks
- 2.1k
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 82
Beschreibung
Context: https://github.com/python/typeshed/pull/7065
Sometimes python / stubs do re-export constans from other modules.
In this case we can:
- Use re-export as well (correct option)
- Duplicate these constants (ok-ish, but not great)
Right now we do nothing to detect the second case.
I guess, that we can improve this!
We can write some kind of non-blocking helper who searches related modules for constants with the same names and suggests to re-use them if needed.
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 Kontext im Pull Request 7065 von python/typeshed und überprüfe, wie verwandte Module Konstanten re-exportieren. Bestimme anschließend den Umfang eines nicht blockierenden Hilfsprogramms, das doppelte Konstantennamen findet und die Wiederverwendung vorschlägt; als abgeschlossen gilt die Aufgabe, wenn der Ansatz und das erwartete Verhalten ausreichend genau für die Implementierung definiert sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100