(self, func, types, args, kwargs)
| 291 | |
| 292 | class MyArray: |
| 293 | def __array_function__(self, func, types, args, kwargs): |
| 294 | if func not in HANDLED_FUNCTIONS: |
| 295 | return NotImplemented |
| 296 | if not all(issubclass(t, MyArray) for t in types): |
| 297 | return NotImplemented |
| 298 | return HANDLED_FUNCTIONS[func](*args, **kwargs) |
| 299 | |
| 300 | def implements(numpy_function): |
| 301 | """Register an __array_function__ implementations.""" |
no test coverage detected