MCPcopy Create free account
hub / github.com/numpy/numpy / VerySimpleSubClass

Class VerySimpleSubClass

numpy/lib/tests/test_stride_tricks.py:520–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518
519
520class VerySimpleSubClass(np.ndarray):
521 def __new__(cls, *args, **kwargs):
522 return np.array(*args, subok=True, **kwargs).view(cls)
523
524
525class SimpleSubClass(VerySimpleSubClass):

Callers 1

test_subclassesFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_subclassesFunction · 0.68