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

Method __array_prepare__

numpy/core/tests/test_umath.py:4680–4681  ·  view source on GitHub ↗
(self, obj, context=None)

Source from the content-addressed store, hash-verified

4678 self.shape = self.shape + (1,)
4679
4680 def __array_prepare__(self, obj, context=None):
4681 return obj
4682
4683 class BadArr2(np.ndarray):
4684 def __array_finalize__(self, obj):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected