MCPcopy Create free account
hub / github.com/numpy/numpy / __array__

Method __array__

numpy/core/tests/test_overrides.py:714–716  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

712
713 class MyClass:
714 def __array__(self):
715 # valid argument to mean:
716 return np.arange(3)
717
718 func1 = staticmethod(np.mean)
719 func2 = np.mean

Callers 2

argsortMethod · 0.45
__array__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected