diff --git a/doc/changelog.d/5293.added.md b/doc/changelog.d/5293.added.md new file mode 100644 index 00000000000..39461d8d2dd --- /dev/null +++ b/doc/changelog.d/5293.added.md @@ -0,0 +1 @@ +Add dir for Workflow objects diff --git a/src/ansys/fluent/core/workflow_new.py b/src/ansys/fluent/core/workflow_new.py index b06d8c74b01..501344a6e14 100644 --- a/src/ansys/fluent/core/workflow_new.py +++ b/src/ansys/fluent/core/workflow_new.py @@ -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()