Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ makegen
Method
makegen
numpy/core/tests/test_numeric.py:1186–1187 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1184
1185
class
TestFromiter:
1186
def
makegen(self):
1187
return
(x**2
for
x in range(24))
1188
1189
def
test_types(self):
1190
ai32 = np.fromiter(self.makegen(), np.int32)
Callers
3
test_types
Method · 0.95
test_lengths
Method · 0.95
test_values
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected