41
41
server_meet_version_and_raise ,
42
42
version_requires ,
43
43
)
44
+ from ansys .dpf .core .server_types import BaseServer
44
45
from ansys .dpf .gate import (
45
46
data_processing_capi ,
46
47
data_processing_grpcapi ,
@@ -624,13 +625,15 @@ def record(self, identifier="", transfer_ownership=True):
624
625
return self ._api .work_flow_record_instance (self , identifier , transfer_ownership )
625
626
626
627
@staticmethod
627
- def get_recorded_workflow (id , server = None ):
628
+ def get_recorded_workflow (id : int , server : BaseServer | None = None ) -> Workflow :
628
629
"""Retrieve a workflow registered (with workflow.record()).
629
630
630
631
Parameters
631
632
----------
632
633
id : int
633
634
ID given by the method "record".
635
+ server: server.BaseServer
636
+ Server from which to get the recorded workflow.
634
637
635
638
Returns
636
639
-------
@@ -659,12 +662,12 @@ def get_recorded_workflow(id, server=None):
659
662
return wf
660
663
661
664
@property
662
- def info (self ):
665
+ def info (self ) -> dict [ str , list [ str ]] :
663
666
"""Dictionary with the operator names and the exposed input and output names.
664
667
665
668
Returns
666
669
-------
667
- info : dictionarry str->list str
670
+ info : dictionary str->list str
668
671
Dictionary with ``"operator_names"``, ``"input_names"``, and ``"output_names"`` key.
669
672
"""
670
673
return {
@@ -674,7 +677,7 @@ def info(self):
674
677
}
675
678
676
679
@property
677
- def operator_names (self ):
680
+ def operator_names (self ) -> list [ str ] :
678
681
"""List of the names of operators added in the workflow.
679
682
680
683
Returns
@@ -688,7 +691,7 @@ def operator_names(self):
688
691
return out
689
692
690
693
@property
691
- def input_names (self ):
694
+ def input_names (self ) -> list [ str ] :
692
695
"""List of the input names exposed in the workflow with set_input_name.
693
696
694
697
Returns
@@ -702,7 +705,7 @@ def input_names(self):
702
705
return out
703
706
704
707
@property
705
- def output_names (self ):
708
+ def output_names (self ) -> list [ str ] :
706
709
"""List of the output names exposed in the workflow with set_output_name.
707
710
708
711
Returns
0 commit comments