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,9 +93,10 @@ 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:
|
|
||||||
raise InvalidKeyError(key)
|
if key:
|
||||||
|
raise InvalidKeyError(key)
|
||||||
|
|
||||||
# Then, check the default values
|
# Then, check the default values
|
||||||
for key, value in skel.items():
|
for key, value in skel.items():
|
||||||
|
|
Loading…
Reference in New Issue