1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 11:31:30 +01:00

remove useless file

This commit is contained in:
bretello 2020-12-01 21:26:57 +01:00
parent cb9488ed5d
commit a02fa47017
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -1,9 +0,0 @@
def flatten(d: dict, leaf_type=str):
out = {}
for key, value in d.items():
if isinstance(value, leaf_type):
out[key] = value
elif isinstance(value, dict):
out = {**out, **flatten(value)}
else:
raise ValueError("Unexpected value type: {type(value)}")