(self, attr)
| 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: |