(self, func, types, args, kwargs)
| 302 | |
| 303 | class MyArray: |
| 304 | def __array_function__(self, func, types, args, kwargs): |
| 305 | if func not in HANDLED_FUNCTIONS: |
| 306 | return NotImplemented |
| 307 | if not all(issubclass(t, MyArray) for t in types): |
| 308 | return NotImplemented |
| 309 | return HANDLED_FUNCTIONS[func](*args, **kwargs) |
| 310 | |
| 311 | def implements(numpy_function): |
| 312 | """Register an __array_function__ implementations.""" |
no test coverage detected