summaryrefslogtreecommitdiff
path: root/numpy/array_api/tests/test_array_object.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-10-05 19:37:51 -0500
committerGitHub <noreply@github.com>2021-10-05 20:37:51 -0400
commitfb2509ca6398e414a538c239e253395d554bf742 (patch)
tree61aaf1a5be922a022a96dad3c84ebb5298d2243f /numpy/array_api/tests/test_array_object.py
parentc92864091e5928d92bc109d1505febe35f3909f1 (diff)
downloadnumpy-fb2509ca6398e414a538c239e253395d554bf742.tar.gz
DOC: Ensure that we add documentation also as to the dict for types (#18775)
* DOC: Ensure that we add documentation also as to the dict for types This ensures that `help(np.dtype)` produces a result. I am not exactly sure why it picks up `__doc__` from the dict instead of `tp_doc` right now. It probably is due to the combination of inheritance and the fact that the dict always includes `None` and gets preference during inheritance. (That probably makes a lot of sense to not inherit the `type` docstring by default.) Modifying the dictionary directly is not really good style, either, but hopefully works. Closes gh-18740
Diffstat (limited to 'numpy/array_api/tests/test_array_object.py')
0 files changed, 0 insertions, 0 deletions