4141 server_meet_version_and_raise ,
4242 version_requires ,
4343)
44+ from ansys .dpf .core .server_types import AnyServerType
4445from ansys .dpf .gate import (
4546 data_processing_capi ,
4647 data_processing_grpcapi ,
@@ -624,17 +625,19 @@ def record(self, identifier="", transfer_ownership=True):
624625 return self ._api .work_flow_record_instance (self , identifier , transfer_ownership )
625626
626627 @staticmethod
627- def get_recorded_workflow (id , server = None ):
628+ def get_recorded_workflow (id : int , server : AnyServerType | None = None ) -> Workflow : # noqa: W0622 # pylint: disable=redefined-builtin
628629 """Retrieve a workflow registered (with workflow.record()).
629630
630631 Parameters
631632 ----------
632- id : int
633+ id:
633634 ID given by the method "record".
635+ server:
636+ Server from which to get the recorded workflow.
634637
635638 Returns
636639 -------
637- workflow : core.Workflow()
640+ workflow:
638641 workflow registered in dpf's registry (server side)
639642
640643 Examples
@@ -659,13 +662,13 @@ def get_recorded_workflow(id, server=None):
659662 return wf
660663
661664 @property
662- def info (self ):
665+ def info (self ) -> dict [ str , list [ str ]] :
663666 """Dictionary with the operator names and the exposed input and output names.
664667
665668 Returns
666669 -------
667- info : dictionarry str->list str
668- Dictionary with ``"operator_names"``, ``"input_names"``, and ``"output_names"`` key .
670+ info:
671+ Dictionary with ``"operator_names"``, ``"input_names"``, and ``"output_names"`` keys .
669672 """
670673 return {
671674 "operator_names" : self .operator_names ,
@@ -674,7 +677,7 @@ def info(self):
674677 }
675678
676679 @property
677- def operator_names (self ):
680+ def operator_names (self ) -> list [ str ] :
678681 """List of the names of operators added in the workflow.
679682
680683 Returns
@@ -688,7 +691,7 @@ def operator_names(self):
688691 return out
689692
690693 @property
691- def input_names (self ):
694+ def input_names (self ) -> list [ str ] :
692695 """List of the input names exposed in the workflow with set_input_name.
693696
694697 Returns
@@ -702,7 +705,7 @@ def input_names(self):
702705 return out
703706
704707 @property
705- def output_names (self ):
708+ def output_names (self ) -> list [ str ] :
706709 """List of the output names exposed in the workflow with set_output_name.
707710
708711 Returns
0 commit comments