From c4124b38c61cb7282763b294812d7d1f8d40fa33 Mon Sep 17 00:00:00 2001 From: James Hilton-Balfe Date: Thu, 30 Jul 2026 15:53:08 +0100 Subject: [PATCH 1/3] feat: Add dir for Workflow objects Adds autocomplete for the task names in the python console inside of fluent. Related to TFS 1463472 --- src/ansys/fluent/core/workflow_new.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ansys/fluent/core/workflow_new.py b/src/ansys/fluent/core/workflow_new.py index b06d8c74b01..b2f57166f36 100644 --- a/src/ansys/fluent/core/workflow_new.py +++ b/src/ansys/fluent/core/workflow_new.py @@ -624,6 +624,9 @@ def __getattr__(self, item): ) ) from ex + def __dir__(self) -> list[str]: + return super().__dir__() + self.task_names() + def __call__(self): """Get workflow state when called as a function.""" return self._workflow_state() From 3592595411bfdb1279d094c630b1896fe966d795 Mon Sep 17 00:00:00 2001 From: James Hilton-Balfe Date: Thu, 30 Jul 2026 15:54:39 +0100 Subject: [PATCH 2/3] add doc string --- src/ansys/fluent/core/workflow_new.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ansys/fluent/core/workflow_new.py b/src/ansys/fluent/core/workflow_new.py index b2f57166f36..501344a6e14 100644 --- a/src/ansys/fluent/core/workflow_new.py +++ b/src/ansys/fluent/core/workflow_new.py @@ -625,6 +625,7 @@ 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): From 5c421283d938b9b5067cc777c531fe57dfa48d44 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Thu, 30 Jul 2026 14:57:14 +0000 Subject: [PATCH 3/3] chore: adding changelog file 5293.added.md [dependabot-skip] --- doc/changelog.d/5293.added.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/5293.added.md 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