@@ -264,7 +264,7 @@ def check_all_types(
264264 )
265265 if _is_conditional_step (param_to_step , parm_id ):
266266 src_typ = aslist (type_dict [src_dict [parm_id ].id ])
267- snk_typ = type_dict [cast ( str , sink .id ) ]
267+ snk_typ = type_dict [sink .id ]
268268 if "null" not in src_typ :
269269 src_typ = ["null" ] + cast (list [Any ], src_typ )
270270 if (
@@ -288,7 +288,7 @@ def check_all_types(
288288 for src in srcs_of_sink :
289289 check_result = check_types (
290290 type_dict [cast (str , src .id )],
291- type_dict [cast ( str , sink .id ) ],
291+ type_dict [sink .id ],
292292 linkMerge ,
293293 getattr (sink , "valueFrom" , None ),
294294 )
@@ -411,6 +411,7 @@ def load_inputfile(
411411 baseuri = cwl .file_uri (os .getcwd ()) + "/"
412412 if loadingOptions is None :
413413 loadingOptions = cwl .LoadingOptions ()
414+
414415 result , metadata = _inputfile_load (
415416 doc ,
416417 baseuri ,
@@ -479,10 +480,7 @@ def type_for_step_input(
479480 cwl_utils .parser .utils .convert_stdstreams_to_files (step_run )
480481 if step_run and step_run .inputs :
481482 for step_input in step_run .inputs :
482- if (
483- cast (str , step_input .id ).split ("#" )[- 1 ]
484- == cast (str , in_ .id ).split ("#" )[- 1 ]
485- ):
483+ if cast (str , step_input .id ).split ("#" )[- 1 ] == in_ .id .split ("#" )[- 1 ]:
486484 input_type = step_input .type_
487485 if step .scatter is not None and in_ .id in aslist (step .scatter ):
488486 input_type = cwl .ArraySchema (items = input_type , type_ = "array" )
0 commit comments