MCPcopy Index your code
hub / github.com/numpy/numpy / SimpleSubClass

Class SimpleSubClass

numpy/lib/tests/test_stride_tricks.py:540–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538
539
540class SimpleSubClass(VerySimpleSubClass):
541 def __new__(cls, *args, **kwargs):
542 self = np.array(*args, subok=True, **kwargs).view(cls)
543 self.info = 'simple'
544 return self
545
546 def __array_finalize__(self, obj):
547 self.info = getattr(obj, 'info', '') + ' finalized'
548
549
550def test_subclasses():

Callers 1

test_subclassesFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_subclassesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…