Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ __array__
Method
__array__
testing/python/approx.py:726–727 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
724
self.value = value
725
726
def
__array__(self):
727
return
np.array(self.value)
728
729
expected = 1
730
actual = 1 + 1e-6
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected