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

Method cached_property

dask/tests/test_expr.py:46–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

44
45 @functools.cached_property
46 def cached_property(self):
47 if MyExprCachedProperty.called_cached_property:
48 raise RuntimeError("No!")
49 MyExprCachedProperty.called_cached_property = True
50 return self.foo + self.bar
51
52
53@pytest.mark.slow()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected