Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ __new__
Method
__new__
numpy/lib/tests/test_stride_tricks.py:521–522 ·
view source on GitHub ↗
(cls, *args, **kwargs)
Source
from the content-addressed store, hash-verified
519
520
class
VerySimpleSubClass(np.ndarray):
521
def
__new__(cls, *args, **kwargs):
522
return
np.array(*args, subok=True, **kwargs).view(cls)
523
524
525
class
SimpleSubClass(VerySimpleSubClass):
Callers
nothing calls this directly
Calls
1
view
Method · 0.45
Tested by
no test coverage detected