Made merge_with_skeleton "less complex"
continuous-integration/drone the build failed
Details
continuous-integration/drone the build failed
Details
parent
8a7f47dfcd
commit
2d06c7feeb
|
@ -93,8 +93,9 @@ def merge_with_skeleton(data: Dict, skel: Dict) -> Dict:
|
||||||
* Split info less complex functions
|
* Split info less complex functions
|
||||||
"""
|
"""
|
||||||
# First, check for illegal keys
|
# First, check for illegal keys
|
||||||
for key in data:
|
key = next(key not in skel for key in data)
|
||||||
if key not in skel:
|
|
||||||
|
if key:
|
||||||
raise InvalidKeyError(key)
|
raise InvalidKeyError(key)
|
||||||
|
|
||||||
# Then, check the default values
|
# Then, check the default values
|
||||||
|
|
Loading…
Reference in New Issue