Docstring cleanup
This commit is contained in:
parent
ec4aa780c2
commit
e34d9c5693
1 changed files with 5 additions and 5 deletions
|
@ -16,12 +16,12 @@ def ensure_format(val, allowed, required, allowed_values=None, defaults=None):
|
||||||
the set of allowed keys, if all required keys are present and if the values
|
the set of allowed keys, if all required keys are present and if the values
|
||||||
of a specific key are ok.
|
of a specific key are ok.
|
||||||
|
|
||||||
:param val: Dictionaries to check.
|
:param val: Dictionaries to check.
|
||||||
:param allowed: Set of allowed keys.
|
:param allowed: Set of allowed keys.
|
||||||
:param required: Set of required keys.
|
:param required: Set of required keys.
|
||||||
:param allowed_values: Dictionary with keys and sets of their allowed values.
|
:param allowed_values: Dictionary with keys and sets of their allowed values.
|
||||||
:returns: List of checked dictionaries.
|
:param defaults: Dictionary with default values.
|
||||||
:param defaults: Dictionary with default values.
|
:returns: List of checked dictionaries.
|
||||||
'''
|
'''
|
||||||
if not val:
|
if not val:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in a new issue