(self)
| 551 | |
| 552 | class TestArrayLike: |
| 553 | def _create_MyArray(self): |
| 554 | class MyArray: |
| 555 | def __init__(self, function=None): |
| 556 | self.function = function |
| 557 | |
| 558 | def __array_function__(self, func, types, args, kwargs): |
| 559 | assert func is getattr(np, func.__name__) |
| 560 | try: |
| 561 | my_func = getattr(self, func.__name__) |
| 562 | except AttributeError: |
| 563 | return NotImplemented |
| 564 | return my_func(*args, **kwargs) |
| 565 | |
| 566 | return MyArray |
| 567 | |
| 568 | def _create_MyNoArrayFunctionArray(self): |
| 569 | class MyNoArrayFunctionArray: |
no outgoing calls
no test coverage detected