-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't use builtins.function and others anymore #8240
Comments
Fair enough, these don't really belong to typeshed. Renaming |
We could do the underscore thing for |
I'm interested in pushing this through in order to help clean up typeshed. I need to think more about the exact approach, but some thoughts:
|
There's also |
Pyright uses all four of these symbols too: |
There is also |
There are at least two classes in typeshed's
builtins.pyi
(class function
andclass ellipsis
, that should not belong there.The issues in typeshed are:
function
from builtins typeshed#2999However, 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.
The text was updated successfully, but these errors were encountered: