diff options
author | Aaron Meurer <asmeurer@gmail.com> | 2021-07-22 17:04:12 -0600 |
---|---|---|
committer | Aaron Meurer <asmeurer@gmail.com> | 2021-07-22 17:04:12 -0600 |
commit | 1e835f9f70a3cba6fc7a053edcbd1b1a01ee79b4 (patch) | |
tree | 753511b9923ad0dedcea098b9db93120a9cdb677 | |
parent | 626567645b180179159fa1807e72b26d58ce20dd (diff) | |
download | numpy-1e835f9f70a3cba6fc7a053edcbd1b1a01ee79b4.tar.gz |
Remove some dead code
-rw-r--r-- | numpy/_array_api/_array_object.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/numpy/_array_api/_array_object.py b/numpy/_array_api/_array_object.py index 505c27839..98e2f78f9 100644 --- a/numpy/_array_api/_array_object.py +++ b/numpy/_array_api/_array_object.py @@ -382,8 +382,6 @@ class Array: other = self._check_allowed_dtypes(other, 'all', '__eq__') if other is NotImplemented: return other - if isinstance(other, (int, float, bool)): - other = self._promote_scalar(other) self, other = self._normalize_two_args(self, other) res = self._array.__eq__(other._array) return self.__class__._new(res) @@ -542,8 +540,6 @@ class Array: other = self._check_allowed_dtypes(other, 'all', '__ne__') if other is NotImplemented: return other - if isinstance(other, (int, float, bool)): - other = self._promote_scalar(other) self, other = self._normalize_two_args(self, other) res = self._array.__ne__(other._array) return self.__class__._new(res) |