Skip to content

Commit 803eb06

Browse files
committed
change check_value strict True to False
1 parent ddecb7c commit 803eb06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpdispatcher/machine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def load_from_dict(cls, machine_dict):
124124
# check dict
125125
base = cls.arginfo()
126126
machine_dict = base.normalize_value(machine_dict, trim_pattern="_*")
127-
base.check_value(machine_dict, strict=True)
127+
base.check_value(machine_dict, strict=False)
128128

129129
context = BaseContext.load_from_dict(machine_dict)
130130
machine = machine_class(context=context)
@@ -371,4 +371,4 @@ def resources_subfields(cls) -> List[Argument]:
371371
list[Argument]
372372
resources subfields
373373
"""
374-
return [Argument("kwargs", dict, optional=True, doc="This field is empty for this batch.")]
374+
return [Argument("kwargs", dict, optional=True, doc="This field is empty for this batch.")]

0 commit comments

Comments
 (0)