Standard library `_operator` module is poorly typed
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
The annotations for functions in the _operator module are inconsistent - some have annotations but most don't.
At first glance, most of the protocols necessary to type these incomplete signatures can be imported from _typeshed, and there is already a precedent in the stub in question.
I can work on the annotations to bridge the inconsistency, but it would be a big undertaking, so I need to get approval first.
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 stdlib/_operator.pyi, insbesondere mit den im Issue referenzierten bestehenden Annotationen, und prüfe die relevanten in _typeshed verfügbaren Protokolle. Vergleiche die annotierten und unvollständigen Signaturen und überprüfe anschließend, dass die Funktionen des Moduls eine konsistente Typabdeckung aufweisen und der Stub mit der Standardbibliothek kompatibel bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- devtools
- Issue-Typ
- Refactoring
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100