Returns True if `self` is equivalent to `other`.
(self, other)
| 1182 | ]) |
| 1183 | |
| 1184 | def __eq__(self, other): |
| 1185 | """Returns True if `self` is equivalent to `other`.""" |
| 1186 | try: |
| 1187 | other = as_shape(other) |
| 1188 | except TypeError: |
| 1189 | return NotImplemented |
| 1190 | return self._dims == other.dims |
| 1191 | |
| 1192 | def __ne__(self, other): |
| 1193 | """Returns True if `self` is known to be different from `other`.""" |
nothing calls this directly
no test coverage detected