| Index: recipe_engine/config.py
|
| diff --git a/recipe_engine/config.py b/recipe_engine/config.py
|
| index dd473a1cf78a16b8f29a0d89944330da4d131000..4b378247b2d1cd41f45e0daf274f145da1a23f8b 100644
|
| --- a/recipe_engine/config.py
|
| +++ b/recipe_engine/config.py
|
| @@ -584,7 +584,7 @@ class Dict(ConfigBase, collections.MutableMapping):
|
| jsonish_fn - A function which renders a list of outputs of item_fn to a
|
| JSON-compatiple python datatype. Defaults to dict().
|
| value_type - A type object used for constraining/validating the values
|
| - assigned to this dictionary.
|
| + assigned to this dictionary. If None, the value can be any type.
|
| hidden - See ConfigBase.
|
| """
|
| super(Dict, self).__init__(hidden)
|
| @@ -620,8 +620,9 @@ class Dict(ConfigBase, collections.MutableMapping):
|
| if isinstance(val, Dict):
|
| val = val.data
|
| typeAssert(val, collections.Mapping)
|
| - for v in val.itervalues():
|
| - typeAssert(v, self.value_type)
|
| + if self.value_type:
|
| + for v in val.itervalues():
|
| + typeAssert(v, self.value_type)
|
| self.data = val
|
|
|
| def as_jsonish(self, _include_hidden=None):
|
|
|