Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/5293.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add dir for Workflow objects
4 changes: 4 additions & 0 deletions src/ansys/fluent/core/workflow_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,10 @@ def __getattr__(self, item):
)
) from ex

def __dir__(self) -> list[str]:
"""Updates the default dir(self) to include the task names added by ``__getattr__``"""
return super().__dir__() + self.task_names()

def __call__(self):
"""Get workflow state when called as a function."""
return self._workflow_state()
Expand Down
Loading