MCPcopy Create free account
hub / github.com/dask/dask / dispatch_property

Function dispatch_property

dask/array/tests/test_dispatch.py:29–38  ·  view source on GitHub ↗

Wrap a simple property.

(prop_name)

Source from the content-addressed store, hash-verified

27
28
29def 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
41class EncapsulateNDArray(np.lib.mixins.NDArrayOperatorsMixin):

Callers 2

EncapsulateNDArrayClass · 0.85
WrappedArrayClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected