@@ -147,12 +147,12 @@ def prompt_component_version_sha(
147
147
148
148
def get_components_to_install (
149
149
subworkflow_dir : Union [str , Path ],
150
- ) -> Tuple [List [Dict [str , Optional [ str ]]] , List [Dict [str , Optional [ str ] ]]]:
150
+ ) -> Tuple [List [Dict [str , str ]], List [Dict [str , str ]]]:
151
151
"""
152
152
Parse the subworkflow main.nf file to retrieve all imported modules and subworkflows.
153
153
"""
154
- modules : Dict [str , Dict [str , Optional [ str ] ]] = {}
155
- subworkflows : Dict [str , Dict [str , Optional [ str ] ]] = {}
154
+ modules : Dict [str , Dict [str , str ]] = {}
155
+ subworkflows : Dict [str , Dict [str , str ]] = {}
156
156
157
157
with open (Path (subworkflow_dir , "main.nf" )) as fh :
158
158
for line in fh :
@@ -165,7 +165,7 @@ def get_components_to_install(
165
165
if link .startswith ("../../../" ):
166
166
name_split = name .lower ().split ("_" )
167
167
component_name = "/" .join (name_split )
168
- component_dict : Dict [str , Optional [ str ] ] = {
168
+ component_dict : Dict [str , str ] = {
169
169
"name" : component_name ,
170
170
}
171
171
modules [component_name ] = component_dict
0 commit comments