Upgrade voluptuous to 0.10.5 (#7107)
* Upgrade voluptuous to 0.10.5 * Fix tests
This commit is contained in:
1 parent
7ff1ded0b5
commit
1f4f2d7086
5 files changed
+7
-8
No files matched your search
@@ -454,10 +454,9 @@ def _identify_config_schema(module):
|
||||
except (AttributeError, KeyError):
|
||||
return (None, None)
|
||||
t_schema = str(schema)
|
||||
if (t_schema.startswith('<function ordered_dict') or
|
||||
t_schema.startswith('<Schema({<function slug')):
|
||||
if t_schema.startswith(('{', '<function ordered_dict')):
|
||||
return ('dict', schema)
|
||||
if t_schema.startswith('All(<function ensure_list'):
|
||||
if t_schema.startswith(('[', 'All(<function ensure_list')):
|
||||
return ('list', schema)
|
||||
return '', schema
|
||||
|
||||
|
||||
Reference in new issue
Block a user