Commit e66c5f57 authored by lintangsutawika's avatar lintangsutawika
Browse files

group config to_dict update

parent 88fea8ad
......@@ -83,9 +83,7 @@ class GroupConfig(dict):
cfg_dict = asdict(self)
# remove values that are `None`
for k, v in list(cfg_dict.items()):
if v is None:
cfg_dict.pop(k)
elif callable(v):
if callable(v):
cfg_dict[k] = self.serialize_function(v, keep_callable=keep_callable)
return cfg_dict
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment