Fix ndarray allany
- [x] closes #12863
- [ ] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`
- [x] whatsnew entry

can you rebase & update
 can you rebase / update?
 can you update
 can you rebase / update?
 can you rebase / update
 can you rebase / update closing as stale. if you want to update, pls comment.