(self, args)
| 112 | return np.asarray(self.arr, *args, **kwargs) |
| 113 | |
| 114 | def _downcast_args(self, args): |
| 115 | for arg in args: |
| 116 | if isinstance(arg, type(self)): |
| 117 | yield arg.arr |
| 118 | elif isinstance(arg, (tuple, list)): |
| 119 | yield type(arg)(self._downcast_args(arg)) |
| 120 | else: |
| 121 | yield arg |
| 122 | |
| 123 | def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): |
| 124 | inputs = tuple(self._downcast_args(inputs)) |
no outgoing calls
no test coverage detected