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

Method __array_wrap__

numpy/lib/tests/test_ufunclike.py:60–63  ·  view source on GitHub ↗
(self, obj, context=None)

Source from the content-addressed store, hash-verified

58 return res
59
60 def __array_wrap__(self, obj, context=None):
61 if isinstance(obj, MyArray):
62 obj.metadata = self.metadata
63 return obj
64
65 def __array_finalize__(self, obj):
66 self.metadata = getattr(obj, 'metadata', None)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected