summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2023-01-18 21:38:03 +0100
committerSebastian Berg <sebastianb@nvidia.com>2023-01-18 22:00:01 +0100
commitc7b12699f4fb377920142d034140d4d2324be867 (patch)
treec4302a5157e00df37e02b0d601e75de165f34f99 /numpy/array_api/_array_object.py
parentb2badd70786145eb21cec02109b23e6520c6ffea (diff)
downloadnumpy-c7b12699f4fb377920142d034140d4d2324be867.tar.gz
BUG: Impelement `ArrayFunctionDispatcher.__get__`
While functions should not normally need this, Python functions do provide it (C functions do not, but we are a fatter object anyway). By implementing `__get__` we also ensure that `inspect.isroutine()` passes. And by that we ensure that Sphinx considers these a `py:function:` role. Closes gh-23032
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions