Skip to content

Commit d06f7e4

Browse files
committed
Fix type check of patches and sanity_check_paths
1 parent 6e246b1 commit d06f7e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

easybuild/framework/easyconfig/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ def ensure_iterable_license_specs(specs):
607607
'key_types': [str, TUPLE_OF_STRINGS],
608608
}
609609
))
610-
STRING_OR_TUPLE_OR_DICT_LIST = (list, as_hashable({'elem_types': [str, TUPLE_OF_STRINGS, STRING_DICT]}))
610+
STRING_OR_TUPLE_OR_DICT_LIST = (list, as_hashable({'elem_types': [str, tuple, STRING_DICT]}))
611611

612612
TOOLCHAIN_DICT = (dict, as_hashable({
613613
'elem_types': {
@@ -643,8 +643,8 @@ def ensure_iterable_license_specs(specs):
643643
SANITY_CHECK_PATHS_FILES: [SANITY_CHECK_PATHS_ENTRY],
644644
SANITY_CHECK_PATHS_DIRS: [SANITY_CHECK_PATHS_ENTRY],
645645
},
646-
'opt_keys': [],
647-
'req_keys': [SANITY_CHECK_PATHS_FILES, SANITY_CHECK_PATHS_DIRS],
646+
'opt_keys': [SANITY_CHECK_PATHS_FILES, SANITY_CHECK_PATHS_DIRS],
647+
'req_keys': [],
648648
}))
649649
# checksums is a list of checksums, one entry per file (source/patch)
650650
# each entry can be:

0 commit comments

Comments
 (0)