Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __array_finalize__
Method
__array_finalize__
numpy/ma/tests/test_subclassing.py:31–34 ·
view source on GitHub ↗
(self, obj)
Source
from the content-addressed store, hash-verified
29
return
x
30
31
def
__array_finalize__(self, obj):
32
super().__array_finalize__(obj)
33
self.info = getattr(obj,
'info'
, {}).copy()
34
return
35
36
def
__add__(self, other):
37
result = super().__add__(other)
Callers
nothing calls this directly
Calls
1
copy
Method · 0.45
Tested by
no test coverage detected