Skip to content

Commit a0c89bd

Browse files
committed
refactor: revert typed dict use
1 parent e73db3b commit a0c89bd

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/ansys/dpf/core/workflow.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@
5757
LOG.setLevel("DEBUG")
5858

5959

60-
class WorkflowInfo(TypedDict):
61-
"""Names of the workflow's operators, inputs and outputs."""
62-
operator_names: list[str]
63-
input_names: list[str]
64-
output_names: list[str]
65-
66-
6760
class Workflow:
6861
"""Represents a workflow.
6962
@@ -669,19 +662,19 @@ def get_recorded_workflow(id: int, server: AnyServerType | None = None) -> Workf
669662
return wf
670663

671664
@property
672-
def info(self) -> WorkflowInfo:
665+
def info(self) -> dict[str, list[str]]:
673666
"""Dictionary with the operator names and the exposed input and output names.
674667
675668
Returns
676669
-------
677670
info:
678671
Dictionary with ``"operator_names"``, ``"input_names"``, and ``"output_names"`` keys.
679672
"""
680-
return WorkflowInfo(
681-
operator_names=self.operator_names,
682-
input_names=self.input_names,
683-
output_names=self.output_names
684-
)
673+
return {
674+
"operator_names": self.operator_names,
675+
"input_names": self.input_names,
676+
"output_names": self.output_names
677+
}
685678

686679
@property
687680
def operator_names(self) -> list[str]:

0 commit comments

Comments
 (0)