Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ __array__
Method
__array__
testing/python/approx.py:719–720 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
717
self.size = size
718
719
def
__array__(self):
720
return
self.value * np.ones(self.size)
721
722
class
DeviceScalar:
723
def
__init__(self, value):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected