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

Method __array_function__

numpy/core/tests/test_overrides.py:546–552  ·  view source on GitHub ↗
(self, func, types, args, kwargs)

Source from the content-addressed store, hash-verified

544 self.function = function
545
546 def __array_function__(self, func, types, args, kwargs):
547 assert func is getattr(np, func.__name__)
548 try:
549 my_func = getattr(self, func.__name__)
550 except AttributeError:
551 return NotImplemented
552 return my_func(*args, **kwargs)
553
554 self.MyArray = MyArray
555

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected