summaryrefslogtreecommitdiff
path: root/numpy/array_api
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-03-12 20:29:01 -0800
committerSebastian Berg <sebastian@sipsolutions.net>2022-04-24 21:47:50 +0200
commit5a1fce3d65fba574c9c322ce9f7af95a168b4aa0 (patch)
tree48f0be3d457289d443a4d54ebdbdec50216ee011 /numpy/array_api
parentefc28f7a193adae9630135aa36c84a0bddcd17fe (diff)
downloadnumpy-5a1fce3d65fba574c9c322ce9f7af95a168b4aa0.tar.gz
BUG: Remove bad assert leading to debug failures
The assert doesn't make sense for richcompare, since it has no notion of forward. It is also problematic in the other cases, because e.g. complex remainder defers (because complex remainder is undefined). So `complex % bool` will ask bool, which then will try to defer to `complex` (even though it is not a forward op). That is correct, since both should defer to tell Python that the operation is undefined.
Diffstat (limited to 'numpy/array_api')
0 files changed, 0 insertions, 0 deletions