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

Method __getattr__

dask/delayed.py:743–755  ·  view source on GitHub ↗
(self, attr)

Source from the content-addressed store, hash-verified

741 return dir(type(self))
742
743 def __getattr__(self, attr):
744 if attr.startswith("_"):
745 raise AttributeError(f"Attribute {attr} not found")
746
747 if attr == "visualise":
748 # added to warn users in case of spelling error
749 # for more details: https://github.com/dask/dask/issues/5721
750 warnings.warn(
751 "dask.delayed objects have no `visualise` method. "
752 "Perhaps you meant `visualize`?"
753 )
754
755 return DelayedAttr(self, attr)
756
757 def __setattr__(self, attr, val):
758 try:

Callers 1

__getattr__Method · 0.45

Calls 1

DelayedAttrClass · 0.85

Tested by

no test coverage detected