Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __repr__
Method
__repr__
numpy/core/tests/test_protocols.py:26–27 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
24
return
getattr(self.array, name)
25
26
def
__repr__(self):
27
return
"<Wrapper({self.array})>"
.format(self=self)
28
29
array = Wrapper(np.arange(10))
30
with
pytest.raises(UserWarning, match=
"object got converted"
):
Callers
1
test_dtype_repr
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected