Standard library `_operator` module is poorly typed
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5.1k
- Forks
- 2.1k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 82
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with stdlib/_operator.pyi, especially the existing annotations referenced in the issue, and review the relevant protocols available from _typeshed. Compare the annotated and incomplete signatures, then verify that the module’s functions have consistent typing coverage and that the stub remains compatible with the standard library.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100