Skip to content

Commit d061b35

Browse files
ghisvaileffigies
andauthored
REF: Use ensure_list instead of list for the str case
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 51a0e3f commit d061b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra/engine/specs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def _check_requires(self, fld, inputs):
636636

637637
if "requires" in fld.metadata:
638638
# if requires is a list of list it is treated as el[0] OR el[1] OR...
639-
required_fields = list(fld.metadata["requires"])
639+
required_fields = ensure_list(fld.metadata["requires"])
640640
if all([isinstance(el, list) for el in required_fields]):
641641
field_required_OR = required_fields
642642
# if requires is a list of tuples/strings - I'm creating a 1-el nested list

0 commit comments

Comments
 (0)