Issue with current documentation:
In both VSCode and PyCharm, when hovering over np.quantile the IDE displays def percentile ... and the corresponding docstring. Although the function signatures are identical, qs range is not. Currently, IDEs tell developers q for np.quantile should be 0-100, which is not correct.
VSCode

PyCharm

Idea or request for content:
The cause appears to be at
|
# NOTE: Not an alias, but they do have identical signatures |
|
# (that we can reuse) |
|
quantile = percentile |
The assignment tricks the IDE into thinking quantile is an alias for percentile so pulls the incorrect info. Would a PR that duplicates the percentile type stubs for quantile be accepted or is the added maintenance burden not worth it?
Issue with current documentation:
In both VSCode and PyCharm, when hovering over
np.quantilethe IDE displaysdef percentile ...and the corresponding docstring. Although the function signatures are identical,qs range is not. Currently, IDEs tell developersqfornp.quantileshould be 0-100, which is not correct.VSCode

PyCharm

Idea or request for content:
The cause appears to be at
numpy/numpy/lib/_function_base_impl.pyi
Lines 775 to 777 in 3727d5b
The assignment tricks the IDE into thinking
quantileis an alias forpercentileso pulls the incorrect info. Would a PR that duplicates thepercentiletype stubs forquantilebe accepted or is the added maintenance burden not worth it?