Allow MetaArray.__array__ to accept an optional dtype arg

Fixes #359
This commit is contained in:
Nick Irvine 2016-07-20 16:47:07 -07:00
parent 670d63cdf4
commit 0e33ddc28b

View File

@ -358,7 +358,7 @@ class MetaArray(object):
else:
return np.array(self._data)
def __array__(self):
def __array__(self, dtype=None):
## supports np.array(metaarray_instance)
return self.asarray()