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

Method __array__

numpy/core/tests/test_overrides.py:514–515  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

512 def __array_function__(self, *args, **kwargs):
513 return self.value.__array_function__(*args, **kwargs)
514 def __array__(self, *args, **kwargs):
515 return self.value.__array__(*args, **kwargs)
516
517 proxy = ArrayProxy(mock.Mock(spec=ArrayProxy))
518 proxy.value.__array_function__.return_value = 1

Callers

nothing calls this directly

Calls 1

__array__Method · 0.45

Tested by

no test coverage detected