File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66from typing import Any
77
88from gxformat2 .normalized import ensure_format2 , NormalizedFormat2
9- from gxformat2 .schema .gxformat2 import FrameComment , GalaxyWorkflow , WorkflowInputParameter
9+ from gxformat2 .schema .gxformat2 import BaseInputParameter , FrameComment , GalaxyWorkflow
1010
1111# Standard Mermaid shape wrappers: (open, close) bracket pairs.
1212# >label] = asymmetric / flag (inputs)
@@ -41,14 +41,15 @@ def _sanitize_label(label: str) -> str:
4141 return label
4242
4343
44- def _input_type_str (inp : WorkflowInputParameter ) -> str :
45- if inp .type_ is None :
44+ def _input_type_str (inp : BaseInputParameter ) -> str :
45+ type_ = getattr (inp , "type_" , None )
46+ if type_ is None :
4647 return "input"
47- if isinstance (inp . type_ , list ):
48- if inp . type_ :
49- return inp . type_ [0 ].value
48+ if isinstance (type_ , list ):
49+ if type_ :
50+ return type_ [0 ].value
5051 return "input"
51- return inp . type_ .value
52+ return type_ .value
5253
5354
5455def _node_line (node_id : str , label : str , shape : tuple [str , str ]) -> str :
You can’t perform that action at this time.
0 commit comments