diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-10-21 16:31:18 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-10-21 16:31:18 -0500 |
commit | fb6a4a69526c69d1f995cfa50105a3b6b2b38a9d (patch) | |
tree | c116bae3166d4d238ecd0a730b3f235b032065ff /numpy/array_api/_creation_functions.py | |
parent | ba3664766d1f8c6b2521b82edd717a2f2be974f2 (diff) | |
download | numpy-fb6a4a69526c69d1f995cfa50105a3b6b2b38a9d.tar.gz |
BUG: Relax homogeneous signature fallback in type resolution
Relaxing the fallback means that reductions, which pass
`(dtype, None, dtype)` as signature (`type_tup` in the old resolver)
can resolve to the homogeneous loop if `dtype=dtype` is passed.
This change is important, because the resolution changed from using
`(None, None, dtype)` to `(dtype, None, dtype)` since reductions
normally are expected to have the first input match the output.
Specifying the signature more precisly without also relaxing the
"homogeneous" fallback, however, lead to a regression noticed
by Pandas.
Closes gh-20151
Diffstat (limited to 'numpy/array_api/_creation_functions.py')
0 files changed, 0 insertions, 0 deletions