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
Big list of functions in the top-level namespace missing types #16546
Comments
We'll probably want to start excluding some of these-e.g. this includes the deprecated financial functions, which we probably just shouldn't bother with. |
See https://github.com/numpy/numpy-stubs/issues/54. Added annotations and tests for: * np.ModuleDeprecationWarning * np.VisibleDeprecationWarning * np.ComplexWarning * np.RankWarning * np.TooHardError * np.AxisError
Things I've excluded so far:
|
we should |
A couple of other ones from
|
Thanks @BvB93. I just pushed a commit to numpy/numpy-stubs#53 which adds an exclude list; once that's merged we can make PRs updating it as we find things we don't want to include. |
Removed |
Removed the 8 functions implemented in #16647. |
Removed the 8 functions implemented in #16729:
|
|
Removed the 5 functions implemented in #17326:
|
Removed 13 modules which where annotated in #17104. Note that "annotated" herein refers the modules being recognized as
Removed three functions annotated in #17144:
Removed three private/builtin modules:
|
Removed two type aliases annotated in #17479:
|
Removed three constants annotated in #17572:
|
Removed two dictionaries annotated in #17584:
|
Removed 7 functions annotated in #17644:
|
Removed 7 objects annotated in #17643:
|
Removed 9 functions annotated in #18032:
|
Removed the 28 classes/aliases annotated in #17843:
|
I have a look at NumPy repo, and find that not every Python file has a corresponding stub file, and not every function is type-annotated. It seems like, there is a certain decision or choice to select/decide which Python files or functions should be added type annotations in priority. I am curious that what is the selection decision? Thanks. :-) |
Hi @jinwuxia, Due to the sheer size and complexity of the numpy library, a large number of functions are currently defined (as |
Ideally we could get basic annotations for all functions in the main numpy namespace for the 1.21 release, |
Removed 10 functions annotated in #18944:
Removed 1 class annotated in #18545:
Removed 12 objects annotated in #18944:
|
Moving this to the 1.22 release, as things are very unlikely to get wrapped up before 1.21. |
Removed 2 classes annotated in #19002:
|
Removed 15 functions + 1 class annotated in #19237:
Removed 4 objects annotated in #18818:
Removed 1 object deprecated in #17586:
|
Removed 13 functions annotated in #19286:
|
Removed 9 functions annotated in #19408:
Removed 2 classes annotated in #19421:
Removed 15 functions annotated in #19444:
|
Removed 10 functions annotated in #19667:
Removed 4 deprecated functions:
|
Removed 2 functions annotated in #19683:
|
Remove 7 functions annotated in #19917:
|
Removed 1 class annotated in #19979:
Removed 14 functions (implicitly) annotated in #20027:
Removed 19 functions annotated in #20006:
Removed 12 functions annotated in #20034:
Removed 9 functions annotated in #20036:
|
Removed 3 functions annotated in #18377:
|
This is a big list of functions in the main
numpy
namespace that are missing types. You can regenerate an updated version of it with aIf you are interested in contributing, adding stubs for one of these functions is a good place to start!
Last updated: 28 October 2021
The text was updated successfully, but these errors were encountered: