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

Class ShouldDispatch

numpy/lib/tests/test_twodim_base.py:299–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297
298 def test_dispatch(self):
299 class ShouldDispatch:
300 def __array_function__(self, function, types, args, kwargs):
301 return types, args, kwargs
302
303 xy = [1, 2]
304 s_d = ShouldDispatch()

Callers 1

test_dispatchMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_dispatchMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…