diff --git a/src/axolotl/utils/dict.py b/src/axolotl/utils/dict.py new file mode 100644 index 000000000..f7297efb2 --- /dev/null +++ b/src/axolotl/utils/dict.py @@ -0,0 +1,9 @@ +from addict import Dict + + +class DictDefault(Dict): + ''' + A Dict that returns None instead of returning empty Dict for missing keys. + ''' + def __missing__(self, key): + return None \ No newline at end of file