Don't use builtins.function and others anymore
Open
@JelleZijlstra is already working on this.
Since Mar 31, 2022.
affects-typeshed
feature
good-second-issue
priority-0-high
- Dominant language
- Python
- Stars
- 20.6k
- Forks
- 3.3k
- PR merge metrics
- PR metrics pending
Description
There are at least two classes in typeshed's builtins.pyi (
class function and class ellipsis, that should not belong there.
The issues in typeshed are:
However, typeshed's CI will break if you still use these classes. Please find another way to implement this and let typeshed remove those classes (respectively rename ellipsis to _ellipsis).
The problem is that other software does depend on typeshed as well and for example Jedi this leads to bugs.
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.
Assessment
This issue has not been assessed yet.