diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-10-05 19:37:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 20:37:51 -0400 |
commit | fb2509ca6398e414a538c239e253395d554bf742 (patch) | |
tree | 61aaf1a5be922a022a96dad3c84ebb5298d2243f /numpy/array_api/_creation_functions.py | |
parent | c92864091e5928d92bc109d1505febe35f3909f1 (diff) | |
download | numpy-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/_creation_functions.py')
0 files changed, 0 insertions, 0 deletions