Wrap a simple property.
(prop_name)
| 27 | |
| 28 | |
| 29 | def dispatch_property(prop_name): |
| 30 | """ |
| 31 | Wrap a simple property. |
| 32 | """ |
| 33 | |
| 34 | @property |
| 35 | def wrapped(self, *a, **kw): |
| 36 | return getattr(self.arr, prop_name) |
| 37 | |
| 38 | return wrapped |
| 39 | |
| 40 | |
| 41 | class EncapsulateNDArray(np.lib.mixins.NDArrayOperatorsMixin): |
no outgoing calls
no test coverage detected