MCPcopy Index your code
hub / github.com/numpy/numpy / __array__

Method __array__

numpy/ma/tests/test_subclassing.py:176–177  ·  view source on GitHub ↗
(self, dtype=None, copy=None)

Source from the content-addressed store, hash-verified

174 return f"{self.__class__.__name__}(\n{self._array}\n{self.attrs}\n)"
175
176 def __array__(self, dtype=None, copy=None):
177 return np.asarray(self._array)
178
179 def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
180 if method == '__call__':

Callers 8

tolistMethod · 0.45
AMethod · 0.45
A1Method · 0.45
__getitem__Method · 0.45
__next__Method · 0.45
__getitem__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected